import { BUNDLE_INFO_APP_BASE_URL, BUNDLE_INFO_APP_DETAILS } from '@AppCenter/config/url-prefix'

const routing = [
  {
    name: 'BundleApp',
    path: BUNDLE_INFO_APP_BASE_URL,
    component: () => import('./_global/components/screens/BundleInfoAppScreen'),
    children: [
      {
        name: 'BundleDetailsPage',
        path: BUNDLE_INFO_APP_DETAILS + '/:bundleSlug/:id',
        component: () => import('./bundle-details/ElkenBundleDetails'),
        props: true,
      },
    ],
  },
]

export default (process.env.VUE_APP_ENABLE_BUNDLE_INFO_APP === 'true' && routing) || []
