import { PLACEMENT_TREE_APP_UPLOAD, PLACEMENT_TREE_APP_VIEWER } from '@/config/url-prefix'

export default [
  {
    path: '/',
    redirect: PLACEMENT_TREE_APP_UPLOAD,
    component: () => import('@@@/app/_global/components/templates/tree-viewer-template'),
    children: [
      {
        path: PLACEMENT_TREE_APP_UPLOAD,
        component: () => import('./components/Upload'),
        name: 'TreeFileUpload',
        meta: {
          backIcon: false,
        },
      },
      {
        path: PLACEMENT_TREE_APP_VIEWER,
        component: () => import('./components/PlacementTreeDiagram'),
        name: 'PlacementTreeDiagram',
        meta: {
          backIcon: true,
        },
      },
    ],
  },
]
