import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const member: AppRouteModule = {
  path: '/member',
  name: 'Member',
  component: LAYOUT,
  redirect: '/member/list',
  meta: {
    icon: 'ic:baseline-card-membership',
    title: t('routes.dashboard.member'),
    orderNo: 102,
  },
  children: [
    {
      path: 'list',
      name: 'MemberList',
      component: () => import('/@/views/member/list.vue'),
      meta: {
        title: t('routes.dashboard.memberList'),
        icon: 'ic:outline-remember-me',
      },
    },
  ],
};

export default member;
