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

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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'solar:user-outline',
      keepAlive: true,
      order: 4,
      title: $t('user.title'),
    },
    name: 'UserManagement',
    path: '/user',
    children: [
      {
        meta: {
          title: $t('user.user_list'),
          icon: 'solar:users-group-rounded-outline',
        },
        name: 'UserList',
        path: '/user/user-list',
        component: () => import('#/views/user/user_list/index.vue'),
      },
    ],
  },
];

export default routes;
