LPX55's picture
Upload components/TmaCard.tsx with huggingface_hub
9f131c9 verified
raw
history blame contribute delete
553 Bytes
import React from 'react';
interface TmaCardProps {
title: string;
description?: string;
children: React.ReactNode;
}
export default function TmaCard({ title, description, children }: TmaCardProps) {
return (
<div className="bg-white rounded-xl shadow-sm border border-tg-border p-5 mb-4">
<h3 className="text-lg font-bold text-tg-text mb-2">{title}</h3>
{description && <p className="text-sm text-tg-textSecondary mb-4">{description}</p>}
<div className="space-y-3">
{children}
</div>
</div>
);
}