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

const routes: RouteRecordRaw[] = [
  {
    path: '/material',
    component: Layout,
    children: [
      { path: '', component: () => import('./views/Index.vue') },
      { path: 'create', component: () => import('./views/Update.vue'), props: { action: 'create' } },
      { path: 'update', component: () => import('./views/Update.vue'), props: { action: 'update' } },
      { path: 'view', component: () => import('./views/Update.vue'), props: { action: 'view' } }
    ]
  }
]

export { routes }
