import { MISPACE as URL_PREFIX, MISPACE_HOME } from '@/config/url-prefix'

export default [
  {
    path: URL_PREFIX,
    name: 'Mispace',
    component: () => import('@/elements/templates/screens/SidebarFluid'),
    redirect: { name: 'MispaceAccessCode' },
    meta: {
      dashboardMenu: {
        displayName: 'Mispace.Title', // this is the sidebar title
        priority: 6,
        icon: 'sidebar-mispace',
      },
      policy: {
        'mi-space': 'view',
      },
    },
    children: [
      {
        path: MISPACE_HOME,
        name: 'MispaceAccessCode',
        component: () => import('@/app/mispace/Components/MispaceAccessCode'),
      },
    ],
  },
]
