import React from 'react'; const Dashboard = React.lazy(() => import('./views/dashboard/Dashboard')); const BoxDisplacemen = React.lazy(() => import('./views/BoxDisplacemen/index')); const CheckSheet = React.lazy(() => import('./views/CheckSheet/index')); const Injection = React.lazy(() => import('./views/Injection/index')); const MachineControl = React.lazy(() => import('./views/MachineControl/index')); const Measurement = React.lazy(() => import('./views/Measurement/index')); const MachineSheet = React.lazy(() => import('./views/MachineSheet/index')); const routes = [ { path: '/', exact: true, name: 'Home' }, { path: '/dashboard', name: 'Dashboard', component: Dashboard }, { path: '/boxdisplacement', exact: true, name: 'Box Displacemen', component: BoxDisplacemen }, { path: '/checksheet', exact: true, name: 'Check Sheet', component: CheckSheet }, { path: '/injection', exact: true, name: 'Injection', component: Injection }, { path: '/machinecontrol', exact: true, name: 'Machine Control', component: MachineControl }, { path: '/measurement', exact: true, name: 'Measurement', component: Measurement }, { path: '/machinesheet', exact: true, name: 'Machine Sheet', component: MachineSheet }, ]; export default routes;