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.merchant.title'),
    },
    name: 'MerchantLayout',
    path: '/merchant',
    children: [
      {
        name: 'MerchantCenter',
        path: 'center',
        component: () => import('#/views/merchant/center/index.vue'),
        meta: {
          hideInMenu: true,
          title: $t('page.merchant.center'),
        },
      },
    ],
  },
];

export default routes;
