import { ESHOP as URL_PREFIX } from '@/config/url-prefix'
import { ESHOP_TEMPLATE } from '@/config/template'

export default [
  {
    path: URL_PREFIX,
    name: 'Product-Detail',
    component: () => import('../_global/components/templates/EshopTemplate'),
    meta: {
      menuItem: false,
      requiresAuth: false,
      template: ESHOP_TEMPLATE,
    },
    children: [
      {
        path: URL_PREFIX + '/:saleType/:productType/:pid',
        name: 'EshopProductDetail',
        props: true,
        component: () => import('@/app/eshop/product-detail/components/eshopProductDetails'),
        meta: {
          title: 'Eshop.Order.ProductDetail.Title',
        },
      },
    ],
  },
]
