import Image from 'next/image'; import { UpdateInvoice, DeleteInvoice } from '@/app/ui/invoices/buttons'; import InvoiceStatus from '@/app/ui/invoices/status'; import { formatDateToLocal, formatCurrency } from '@/app/lib/utils'; import { fetchFilteredInvoices } from '@/app/lib/data'; export default async function InvoicesTable({ query, currentPage, }: { query: string; currentPage: number; }) { const invoices = await fetchFilteredInvoices(query, currentPage); return (
{invoice.name}
{invoice.email}
{formatCurrency(invoice.amount)}
{formatDateToLocal(invoice.date)}
Customer | Amount | Date | Status | Edit | |
---|---|---|---|---|---|
{invoice.name} |
{invoice.email} | {formatCurrency(invoice.amount)} | {formatDateToLocal(invoice.date)} |
|
|