import About from '@/pages/About' import NotFound from '@/pages/Error/404' import Home from '@/pages/Home' import Login from '@/pages/Login' import Profile from '@/pages/Profile' import { CustomRouteProps } from '@/routes/interfaces' import { RouteTypes } from '@/routes/types' const routes: CustomRouteProps[] = [ // Auth { key: 'login', path: RouteTypes.LOGIN, component: () => , }, { key: 'home', exact: true, path: RouteTypes.HOME, component: () => , }, { key: 'about', path: RouteTypes.ABOUT, component: () => , }, { exact: true, key: 'profile', path: RouteTypes.PROFILE, component: () => , withAuthority: true, }, // Errors { key: 'notfound', path: RouteTypes.ERROR_404, component: () => , }, ] export { routes }