import { RESUME_PAYMENT_APP, RESUME_PAYMENT_APP_ORDER_SUMMARY, RESUME_PAYMENT_APP_COMPLETE } from '@/config/url-prefix'

export default [
  {
    path: '/',
    component: () => import('@@@@/app/_global/components/templates/EshopPaymentTemplate'),
    redirect: { name: 'PaymentMain' },
    children: [
      {
        name: 'PaymentMain',
        path: RESUME_PAYMENT_APP,
        redirect: { name: 'OrderSummary' },
        component: {
          render(c) {
            return c('router-view')
          },
        },
        children: [
          {
            name: 'OrderSummary',
            path: RESUME_PAYMENT_APP_ORDER_SUMMARY + '/:id',
            props: true,
            component: () => import('@@@@/app/payment/components/OrderSummaryPage'),
          },
          {
            name: 'OrderComplete',
            path: RESUME_PAYMENT_APP_COMPLETE + '/:id',
            props: true,
            component: () => import('@@@@/app/payment/components/PaymentCompletePage'),
          },
        ],
      },
    ],
  },
]
