import Image from "next/image"; import type { FormattedCustomersTable } from "@/app/lib/definitions"; import { lusitana } from "@/app/ui/fonts"; import Search from "../search"; 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}
); }