import { REPORT as URL_PREFIX, REPORT_BV_SV_INFO } from '@/config/url-prefix'

export default [
  {
    path: URL_PREFIX,
    component: () => import('@/elements/templates/screens/SidebarFluid'),
    name: 'Report',
    redirect: URL_PREFIX + '/bonus',
    meta: {
      dashboardMenu: {
        displayName: 'Report.Title', // this is the sidebar title
        priority: 3,
        icon: 'sidebar-report',
      },
      policy: {
        report: 'view',
      },
    },
    children: [
      {
        path: URL_PREFIX + '/bonus',
        component: () => import('./components/BonusStatement'),
        name: 'ReportBonusStatement',
        meta: {
          dashboardMenu: {
            displayName: 'Report.BonusStatement.Title', // this is the sidebar title
            priority: 3,
          },
          policy: {
            'bonus-statement': 'view',
          },
        },
      },
      {
        path: URL_PREFIX + '/report',
        component: () => import('./components/CampaignReport'),
        name: 'ReportCampaignReport',
        meta: {
          dashboardMenu: {
            displayName: 'Report.CampaignReport.Title', // this is the sidebar title
            priority: 3,
          },
          policy: {
            'campaign-report': 'view',
          },
        },
      },
      {
        path: REPORT_BV_SV_INFO,
        component: () => import('./components/BvSvInfoStatement'),
        name: 'ReportBvSvInfoStatement',
        meta: {
          dashboardMenu: {
            displayName: 'Report.BvSvInfo.Title',
            priority: 3,
          },
          policy: {
            'bv-sv-info-statement': 'view',
          },
        },
      },
    ],
  },
]
