mirror of
https://github.com/BradNut/nextjs-dashboard
synced 2025-09-08 17:40:30 +00:00
23 lines
522 B
TypeScript
23 lines
522 B
TypeScript
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>
|
|
);
|
|
}
|