import Image from 'next/image'; import { lusitana } from '@/app/ui/fonts'; import Search from '@/app/ui/search'; import { CustomersTableType, FormattedCustomersTable, } from '@/app/lib/definitions'; export default async function CustomersTable({ customers, }: { customers: FormattedCustomersTable[]; }) { return (

Customers

{customers?.map((customer) => (
{`${customer.name}'s

{customer.name}

{customer.email}

Pending

{customer.total_pending}

Paid

{customer.total_paid}

{customer.total_invoices} invoices

))}
{customers.map((customer) => ( ))}
Name Email Total Invoices Total Pending Total Paid
{`${customer.name}'s

{customer.name}

{customer.email} {customer.total_invoices} {customer.total_pending} {customer.total_paid}
); }