import type { RouteRecordRaw } from 'vue-router'
import Layout from '@/components/layout/Index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/operations',
    component: Layout,
    redirect: '/operations/plan',
    children: [
      { path: 'plan', component: () => import('./views/Index.vue'), props: { type: 'plan' } },
      { path: 'audiovisual', component: () => import('./views/Index.vue'), props: { type: 'audiovisual' } },
      { path: 'flow', component: () => import('./views/Index.vue'), props: { type: 'flow' } },
    ],
  },
]

export { routes }
