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

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

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:laugh',
      order: 1000,
      title: $t('page.userlog.title'),
      authority: ['super', 'AC2001', 'AC2002', 'AC2003', 'AC2004', 'AC2005', 'AC3001', 'AC3003', 'AC3004'],
    },
    name: 'Userlog',
    path: '/userlog',
    children: [
      {
        name: 'Userlist',
        path: '/userlist',
        component: () => import('#/views/userlog/userlist/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:list',
          title: $t('page.userlog.userlist'),
          authority: ['super', 'AC3001', 'AC3002', 'AC3003', 'AC3004'],
        },
      }
    ],
  },
];

export default routes;
