import { RouterView } from 'vue-router';

export default {
    path: '/monitor',
    name: 'Monitor',
    meta: {
        title: 'monitors',
        icon: 'grid_view',
        moduleName: 'Monitor',
        keyBinding: 'm',
    },
    component: RouterView,
    redirect: { name: 'MonitorMain' },
    menus: {
        main: ['MonitorTickets', 'MonitorClientsActions'],
        card: [],
    },
    children: [
        {
            path: '',
            name: 'MonitorMain',
            component: () => import('src/components/common/VnSectionMain.vue'),
            redirect: { name: 'MonitorTickets' },
            children: [
                {
                    path: 'tickets',
                    name: 'MonitorTickets',
                    meta: {
                        title: 'ticketsMonitor',
                        icon: 'vn:ticket',
                    },
                    component: () =>
                        import('src/pages/Monitor/Ticket/MonitorTickets.vue'),
                },
                {
                    path: 'clients-actions',
                    name: 'MonitorClientsActions',
                    meta: {
                        title: 'clientsActionsMonitor',
                        icon: 'vn:client',
                    },
                    component: () =>
                        import('src/pages/Monitor/MonitorClientsActions.vue'),
                },
            ],
        },
    ],
};
