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

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

export { routes }
