import { SUBSCRIPTION as URL_PREFIX } from '@/config/url-prefix'

export default [
  {
    path: URL_PREFIX + '/',
    name: 'subscription',
    component: () => import('./components/Order'),
    meta: {
      screen: 'subscription',
    },
    children: [
      // After loading default data, the application is routed to the first child route
      {
        path: URL_PREFIX + '/payment',
        component: () => import('./components/steps/Payment'),
        name: 'SubscriptionPayment',
        meta: {
          title: 'MyAccount.Title',
        },
      },
      // On payment success, the router will route to the last route of these childrens
      {
        path: URL_PREFIX + '/complete',
        component: () => import('./components/steps/Complete'),
        name: 'SubscriptionCompleted',
        meta: {
          title: 'MyAccount.Title',
        },
      },
    ],
  },
]
