import type { RouteObject } from 'react-router-dom'; import ReceiptLongIcon from '@mui/icons-material/ReceiptLong'; import type { MenuItem } from '@/shell/types'; import { WageClaimCreatePage, WageClaimPage, WageClaimsPage } from './pages'; import strings from './strings'; /** Refinery wage claims (مطالبة الأجور). Routes use absolute paths; the trip screen of the trips module links here by /refinery/wage-claims/:id. */ export const routes: RouteObject[] = [ { path: '/refinery/wage-claims', element: }, { path: '/refinery/wage-claims/new', element: , handle: { crumb: strings['wc.crumb.new'] } }, { path: '/refinery/wage-claims/:id', element: , handle: { crumb: strings['wc.crumb.details'] } }, ]; /** Leaf entry only: the lead composes the refinery group. key = the screen key (PermissionKeys.RefineryWageClaims). */ export const menuItems: MenuItem[] = [ { key: 'refinery.wageClaims', title: strings['wc.menu'], icon: ReceiptLongIcon, path: '/refinery/wage-claims', createPath: '/refinery/wage-claims/new', createKey: 'refinery.wageClaims.create', }, ];