37321-vm/frontend/src/components/CardBoxComponentTitle.tsx
2026-01-08 14:18:21 +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