import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: -1,
      title: $t('page.dashboard.title'),
    },
    name: 'Dashboard',
    path: '/',
    children: [
      {
        name: 'home',
        path: '/home',
        component: () => import('#/views/dashboard/home/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:area-chart',
          title: $t('工作台'),
        },
      },
      {
        name: 'notice',
        path: '/notice',
        component: () => import('#/views/dashboard/notice/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: $t('站内信'),
        },
      },
    ],
  },
];

export default routes;
