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

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