import { RouterView } from 'vue-router';

export default {
    path: 'account/alias',
    name: 'Alias',
    meta: {
        title: 'alias',
        icon: 'email',
        moduleName: 'Alias',
    },
    component: RouterView,
    redirect: { name: 'AccountAliasList' },
    menus: {
        main: [],
        card: ['AliasBasicData', 'AliasUsers'],
    },
    children: [
        {
            name: 'AliasCard',
            path: ':id',
            component: () => import('src/pages/Account/Alias/Card/AliasCard.vue'),
            redirect: { name: 'AliasSummary' },
            children: [
                {
                    name: 'AliasSummary',
                    path: 'summary',
                    meta: {
                        title: 'summary',
                        icon: 'launch',
                    },
                    component: () =>
                        import('src/pages/Account/Alias/Card/AliasSummary.vue'),
                },
                {
                    name: 'AliasBasicData',
                    path: 'basic-data',
                    meta: {
                        title: 'basicData',
                        icon: 'vn:settings',
                    },
                    component: () =>
                        import('src/pages/Account/Alias/Card/AliasBasicData.vue'),
                },
                {
                    name: 'AliasUsers',
                    path: 'users',
                    meta: {
                        title: 'aliasUsers',
                        icon: 'group',
                    },
                    component: () =>
                        import('src/pages/Account/Alias/Card/AliasUsers.vue'),
                },
            ],
        },
    ],
};
