import isAuthenticated from "../logic/isAuthenticated"; import Login from "../pages/Login"; const PrivateRoute = ({ children }) => { return isAuthenticated() ? children : ; }; export default PrivateRoute;