Chapter 12 - Implement creating an invoice

This commit is contained in:
2024-01-03 09:32:35 +01:00
parent 86036bdf1f
commit 3e0842aef2
3 changed files with 61 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
import Form from '@/app/ui/invoices/create-form';
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
import { fetchCustomers } from '@/app/lib/data';
export default async function Page() {
const customers = await fetchCustomers();
return (
<main>
<Breadcrumbs
breadcrumbs={[
{ label: 'Invoices', href: '/dashboard/invoices' },
{
label: 'Create Invoice',
href: '/dashboard/invoices/create',
active: true,
},
]}
/>
<Form customers={customers} />
</main>
);
}