14 lines
416 B
TypeScript
14 lines
416 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
export default function Card({title, children}: {title: string, children: ReactNode}) {
|
|
return (
|
|
<section className="p-5 flex flex-col justify-between">
|
|
<h2 className="text-lg font-semibold mb-4 flex items-center gap-2">
|
|
{title}
|
|
</h2>
|
|
<div>
|
|
{children}
|
|
</div>
|
|
</section>
|
|
);
|
|
} |