import { RouterView } from 'vue-router';

export default {
    path: '/item',
    name: 'Item',
    meta: {
        title: 'items',
        icon: 'vn:item',
    },
    component: RouterView,
    redirect: { name: 'ItemMain' },
    menus: {
        main: [],
        card: [],
    },
    children: [
        {
            path: '',
            name: 'ItemMain',
            component: () => import('src/pages/Item/ItemMain.vue'),
            redirect: { name: 'Itemlist' },
            children: [
                {
                    path: 'list',
                    name: 'ItemList',
                    meta: {
                        title: 'list',
                        icon: 'view_list',
                    },
                    component: () => import('src/pages/Item/ItemList.vue'),
                },
            ],
        },
        {
            name: 'ItemCard',
            path: ':id',
            component: () => import('src/pages/Item/Card/ItemCard.vue'),
            redirect: { name: 'ItemSummary' },
            children: [
                {
                    name: 'ItemSummary',
                    path: 'summary',
                    meta: {
                        title: 'summary',
                        icon: 'launch',
                    },
                    component: () => import('src/pages/Item/Card/ItemSummary.vue'),
                },
                {
                    path: 'diary',
                    name: 'ItemDiary',
                    meta: {
                        title: 'diary',
                        icon: 'vn:transaction',
                    },
                    component: () => import('src/pages/Item/Card/ItemDiary.vue'),
                },
                {
                    path: 'tags',
                    name: 'ItemTags',
                    meta: {
                        title: 'Tags',
                        icon: 'vn:tags',
                    },
                    component: () => import('src/pages/Item/Card/ItemTags.vue'),
                },
            ],
        },
    ],
};
