UNPKG

@forrestjs/kitchensink

Version:
33 lines (28 loc) 702 B
import { InvoicesMenuItems } from './InvoicesMenuItems'; import { InvoicesContent } from './InvoicesContent'; import { InvoicesDashboard } from './InvoicesDashboard'; export const invoices = ({ registerAction }) => { registerAction({ hook: '$LAYOUT_DRAWER_PRIMARY_LIST_ITEMS', handler: () => InvoicesMenuItems, }); registerAction({ hook: '$LAYOUT_ROUTE', handler: () => ({ path: '/invoices', component: InvoicesContent, }), }); registerAction({ hook: '$LAYOUT_TITLE', handler: () => 'Foobar', }); registerAction({ hook: '$DASHBOARD_ITEM', handler: () => ({ lg: 8, md: 6, component: InvoicesDashboard, }), }); };