import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/profile',
  name: 'profile',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '用户相关',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 3,
    showInMenu: true
  },
  children: [
    {
      path: 'userSettings',
      name: 'userSettings',
      component: () => import('@/views/user-center/user-profile/index.vue'),
      meta: {
        locale: '用户设置',
        requiresAuth: true,
        roles: ['*']
      }
    }
  ]
};

export default DASHBOARD;
