import { ESHOP_ORDER_REVIEW, ESHOP_ORDER_PAYMENT, ESHOP_ORDER_COMPLETE } from '@/config/url-prefix'
import { ESHOP_TEMPLATE } from '@/config/template'

export default [
  {
    path: ESHOP_ORDER_REVIEW,
    component: () => import('../_global/components/templates/CheckoutTemplate'),
    name: 'Order',
    meta: {
      menuItem: false,
      requiresAuth: false,
      template: ESHOP_TEMPLATE,
    },
    props: { cartBtn: false },
    children: [
      {
        path: ESHOP_ORDER_REVIEW,
        component: () => import('./components/OrderReview'),
        name: 'OrderReview',
        meta: {
          title: 'Eshop.Order.Review.Text',
        },
      },
      {
        path: ESHOP_ORDER_PAYMENT,
        component: () => import('./components/OrderPayment'),
        name: 'OrderPayment',
        meta: {
          title: 'Eshop.Order.Review.Text',
        },
      },
      {
        path: ESHOP_ORDER_COMPLETE,
        component: () => import('./components/OrderComplete'),
        name: 'OrderComplete',
        meta: {
          title: 'Eshop.Order.Review.Text',
        },
      },
    ],
  },
]
