kestrel-app
▾ app
▾ invoices
page.tsx
[id]
layout.tsx
▾ components
invoice-table.tsx
new-invoice-button.tsx
▸ lib
package.json
kestrel-app
▾ app
▾ invoices
page.tsxM
[id]
layout.tsx
▾ components
export-button.tsxU
invoice-table.tsx
new-invoice-button.tsx
▾ lib
csv.tsU
package.json
- 1
import { InvoiceTable } from '@/components/invoice-table' - 2
import { NewInvoiceButton } from '@/components/new-invoice-button' - 3
import { getInvoices } from '@/lib/invoices' - 4
- 5
export default async function InvoicesPage() { - 6
const invoices = await getInvoices() - 7
- 8
return ( - 9
<main className="invoices"> - 10
<header> - 11
<h1>Invoices</h1> - 12
<NewInvoiceButton /> - 13
</header> - 14
<InvoiceTable rows={invoices} /> - 15
</main> - 16
) - 17
}
- 1
import { ExportButton } from '@/components/export-button' - 2
import { InvoiceTable } from '@/components/invoice-table' - 3
import { NewInvoiceButton } from '@/components/new-invoice-button' - 4
import { getInvoices } from '@/lib/invoices' - 5
- 6
export default async function InvoicesPage() { - 7
const invoices = await getInvoices() - 8
- 9
return ( - 10
<main className="invoices"> - 11
<header> - 12
<h1>Invoices</h1> - 13
<ExportButton rows={invoices} /> - 14
<NewInvoiceButton /> - 15
</header> - 16
<InvoiceTable rows={invoices} /> - 17
</main> - 18
) - 19
}