import portfolio from '@/pages/portfolio/portfolio';
import project from '@/pages/portfolio/project';
import newProject from '@/pages/portfolio/newProject';
import editProject from '@/pages/portfolio/editProject';
import {NEW_PROJECT_PAGE, PROJECTS_PAGE} from '@/router/portfolio.names';

const portfolioRoutes = [
  {path: '/portfolio', name: PROJECTS_PAGE, component: portfolio, meta: {hideFooter: true}},
  {path: '/portfolio/:slug', name: 'project', component: project, props: true},
  {path: '/new-project/', name: NEW_PROJECT_PAGE, 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;
