Spaces:
Runtime error
Runtime error
Upload components/TmaCard.tsx with huggingface_hub
Browse files- components/TmaCard.tsx +19 -0
components/TmaCard.tsx
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React from 'react';
|
| 2 |
+
|
| 3 |
+
interface TmaCardProps {
|
| 4 |
+
title: string;
|
| 5 |
+
description?: string;
|
| 6 |
+
children: React.ReactNode;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
export default function TmaCard({ title, description, children }: TmaCardProps) {
|
| 10 |
+
return (
|
| 11 |
+
<div className="bg-white rounded-xl shadow-sm border border-tg-border p-5 mb-4">
|
| 12 |
+
<h3 className="text-lg font-bold text-tg-text mb-2">{title}</h3>
|
| 13 |
+
{description && <p className="text-sm text-tg-textSecondary mb-4">{description}</p>}
|
| 14 |
+
<div className="space-y-3">
|
| 15 |
+
{children}
|
| 16 |
+
</div>
|
| 17 |
+
</div>
|
| 18 |
+
);
|
| 19 |
+
}
|