const StatsLayout = () => import('./StatsLayout.vue');
const DailyDeliveriesGraph = () => import('./DailyDeliveriesGraph.vue');
const TotalsComparison = () => import('./TotalsComparison.vue');
const CustomerSignupsGraph = () => import('./CustomerSignupsGraph.vue');

const statsRoutes = [
  {
    path: '/stats',
    component: StatsLayout,
    children: [
      {
        path: '',
        redirect: { name: 'statsDailyDeliveries' }
      },
      {
        path: 'daily',
        name: 'statsDailyDeliveries',
        component: DailyDeliveriesGraph
      },
      {
        path: 'totals',
        name: 'statsTotals',
        component: TotalsComparison
      },
      {
        path: 'customers',
        name: 'statsCustomers',
        component: CustomerSignupsGraph
      }
    ]
  }
];

export default statsRoutes;
