31107-vm/frontend/src/components/CardBoxComponentTitle.tsx
2025-12-24 14:23:22 +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