import cardController from "@/app/[lang]/dashboard/controller/card.controller"; export function Card({ title, value, type, }: { title: string; value: number | string; type: "invoices" | "customers" | "pending" | "collected"; }) { const { Icon } = cardController({ type }); return (
{Icon ? : null}

{title}

{value}

); }