/* Copyright (C) 2024 Manuel Bustillo*/ import { BanknotesIcon, ClockIcon, UserGroupIcon, InboxIcon, } from '@heroicons/react/24/outline'; import { lusitana } from '@/app/ui/fonts'; const iconMap = { collected: BanknotesIcon, customers: UserGroupIcon, pending: ClockIcon, guests: InboxIcon, }; export default async function CardWrapper() { return ( <> {/* NOTE: Uncomment this code in Chapter 9 */} {/* */} ); } export function Card({ title, value, type, }: { title: string; value: number | string; type: 'guests' | 'customers' | 'pending' | 'collected'; }) { const Icon = iconMap[type]; return (
{Icon ? : null}

{title}

{value}

); }