import type { AppRouteRecordRaw } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';

export const InvoiceRoute: AppRouteRecordRaw = {
  path: '/invoice',
  name: 'Invoice',
  redirect: '/invoice/list',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.invoice'),
    icon: 'la:file-invoice-dollar',
    orderNo: 10,
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'list',
      name: 'List',
      component: () => import('/@/views/invoice/index.vue'),
      meta: {
        title: t('routes.dashboard.invoice'),
      },
    },
  ],
};
export default InvoiceRoute;
