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

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

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      hideInMenu: true,
      title: $t('page.auth.profile'),
    },
    name: 'PersonalLayout',
    path: '/personal',
    children: [
      {
        name: 'PersonalCenter',
        path: 'center',
        component: () => import('#/views/personal/center/index.vue'),
        meta: {
          hideInMenu: true,
          title: $t('page.auth.profile'),
        },
      },
    ],
  },
];

export default routes;
