import { SMART_ELIBRARY as URL_PREFIX } from '@/config/url-prefix'

export default [
  {
    path: '/',
    component: () => import('@/elements/templates/screens/SidebarFluid'),
    name: 'SmartELibrary',
    redirect: URL_PREFIX,
    meta: {
      menuItem: false,
      requiresAuth: false,
    },
    children: [
      {
        path: URL_PREFIX,
        component: () => import('./components/SmartELibrary'),
        name: 'SmartELibraryDashboard',
        meta: {
          dashboardMenu: {
            displayName: 'SmartLibrary.Title', // this is the sidebar title
            priority: 2,
            icon: 'sidebar-smartelibrary',
          },
          policy: {
            virel: 'view',
          },
        },
      },
    ],
  },
]
