import type { ModuleClientParams } from "@erp/core/client";
import { lazy } from "react";
import { Outlet, type RouteObject } from "react-router-dom";
const ProformaLayout = lazy(() =>
import("./proformas/ui").then((m) => ({ default: m.ProformaLayout }))
);
const IssuedInvoicesLayout = lazy(() =>
import("./issued-invoices/ui").then((m) => ({ default: m.IssuedInvoicesLayout }))
);
const ProformasListPage = lazy(() =>
import("./proformas/list").then((m) => ({ default: m.ProformaListPage }))
);
const IssuedInvoiceListPage = lazy(() =>
import("./issued-invoices/pages").then((m) => ({ default: m.IssuedInvoiceListPage }))
);
/*const CustomerInvoiceAdd = lazy(() =>
import("./pages").then((m) => ({ default: m.CustomerInvoiceCreate }))
);
const InvoiceUpdatePage = lazy(() =>
import("./pages").then((m) => ({ default: m.InvoiceUpdatePage }))
);*/
export const CustomerInvoiceRoutes = (params: ModuleClientParams): RouteObject[] => {
return [
{
path: "proformas",
element: (
),
children: [
{ path: "", index: true, element: }, // index
{ path: "list", element: },
//{ path: "create", element: },
//{ path: ":id/edit", element: },
],
},
{
path: "customer-invoices",
element: (
),
children: [
{ path: "", index: true, element: }, // index
{ path: "list", element: },
/*
{ path: "create", element: },
{ path: ":id", element: },
{ path: ":id/edit", element: },
{ path: ":id/delete", element: },
{ path: ":id/view", element: },
{ path: ":id/print", element: },
{ path: ":id/email", element: },
{ path: ":id/download", element: },
{ path: ":id/duplicate", element: },
{ path: ":id/preview", element: },
*/
],
},
];
};