import { Card, CardContent, CardHeader } from "@repo/shadcn-ui/components/card"; import type { ReactNode } from "react"; import { useId } from "react"; /** Panel de consulta con jerarquía común; datos, textos y acciones pertenecen al consumidor. */ export function DetailPanel({ title, description, icon, count, actions, children, density = "default", }: { title: string; description?: string; icon: ReactNode; count?: number | undefined; actions?: ReactNode; children: ReactNode; density?: "default" | "compact"; }) { const id = useId(); return (

{title} {count !== undefined && ( {count} )}

{description && (

{description}

)}
{actions &&
{actions}
}
{children}
); }