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

export default [
  {
    path: '/',
    component: () => import('@/elements/templates/screens/SidebarFluid'),
    name: 'ShareQRCode',
    redirect: URL_PREFIX,
    meta: {
      menuItem: false,
      requiresAuth: false,
    },
    children: [
      {
        path: URL_PREFIX,
        component: () => import('./components/ShareQRCode'),
        name: 'ShareQRCodeDashboard',
        meta: {
          dashboardMenu: {
            displayName: 'ShareQR.Title', // this is the sidebar title
            priority: 1,
            icon: 'sidebar-shareqrcode',
          },
          policy: {
            'share-qr-code': 'view',
          },
        },
      },
    ],
  },
]
