import { BanknotesIcon, ClockIcon, UserGroupIcon, InboxIcon, } from '@heroicons/react/24/outline'; import { lusitana } from '@/app/ui/fonts'; const iconMap = { collected: BanknotesIcon, customers: UserGroupIcon, pending: ClockIcon, invoices: InboxIcon, }; export default async function CardWrapper() { return ( <> {/* NOTE: comment in this code when you get to this point in the course */} {/* */} ); } export function Card({ title, value, type, }: { title: string; value: number | string; type: 'invoices' | 'customers' | 'pending' | 'collected'; }) { const Icon = iconMap[type]; return (
{Icon ? : null}

{title}

{value}

); }