import portfolio from '@/pages/portfolio/portfolio';
import project from '@/pages/portfolio/project';
import newProject from '@/pages/portfolio/newProject';
import editProject from '@/pages/portfolio/editProject';

const portfolioRoutes = [
  {path: '/portfolio', name: 'portfolio', component: portfolio},
  {path: '/portfolio/:slug', name: 'project', component: project, props: true},
  {path: '/new-project/', name: 'new-project', component: newProject},
  {path: '/edit-project/:id', name: 'edit-project', component: editProject, props: true},
];

const routes = process.env.VUE_APP_ENABLE_PORTFOLIO ? portfolioRoutes : [];

export default routes;
