import { Navigate, Outlet } from 'react-router-dom';
import { PublicRoutes } from '../config/routes';

const AuthGuard = () => {
  const user = true;
  return user ? <Outlet /> : <Navigate replace to={PublicRoutes.HOME} />;
};

export default AuthGuard;
