40252-vm/frontend/src/components/CardBoxComponentTitle.tsx
2026-06-12 03:40:33 +00:00

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