import type { ReactNode } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import type { Association } from "@/lib/models"; import { AssociationStatusBadge } from "./association-status-badge"; export function AssociationInfoCard({ association }: { association: Association }) { const fields: { label: string; value: ReactNode }[] = [ { label: "Indirizzo", value: association.address || "—" }, { label: "Partita IVA", value: association.vatNumber || "—" }, { label: "Codice RUNTS", value: association.runtsId || "—" }, { label: "Stato", value: }, ]; return ( Informazioni generali
{fields.map((field) => (
{field.label}
{field.value}
))}
); }