import React from "react" ; import Login from "../pages/Login" ; import Event from '../pages/Event' ; export interface IRoute { path : string ; component : React . ComponentType ; exact ? : boolean ; } export enum RouteNames { LOGIN = '/login' , EVENT = '/' } export const publicRoutes = [ { path : RouteNames . LOGIN , exact : true , component : Login } ] ; export const privateRoutes = [ { path : RouteNames . EVENT , exact : true , component : Event } ] ;