18 lines
350 B
TypeScript
18 lines
350 B
TypeScript
import React, { ReactNode } from 'react'
|
|
|
|
type Props = {
|
|
title: string
|
|
children?: ReactNode
|
|
}
|
|
|
|
const CardBoxComponentTitle = ({ title, children }: Props) => {
|
|
return (
|
|
<div className="flex items-center justify-center mb-3">
|
|
<h1 className="text-2xl">{title}</h1>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default CardBoxComponentTitle
|