// Route paths only — deliberately free of any `next/*` import so a CLIENT component may // import these without dragging server code into the browser bundle. The revalidating // helper lives in ./invoice-revalidate.ts and is server-side. // // The two halves of the invoice register. Both pages read the SAME `invoices` collection // and differ only in which debtors they show (see lib/invoice-party-policy.json). They are // SIBLING routes: a nested path would satisfy `isGroupActive`'s prefix test for both leaves // at once, so "Internal" and "External" would highlight together. export const INTERNAL_INVOICES_PATH = "/income/invoices"; export const EXTERNAL_INVOICES_PATH = "/income/external-invoices"; export const INVOICE_PATHS = [INTERNAL_INVOICES_PATH, EXTERNAL_INVOICES_PATH] as const;