29745/frontend/src/components/CardBoxComponentTitle.tsx
2025-03-09 22:52:30 +00:00

18 lines
357 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;