import { useAuthStore } from "@/modules/auth/store/useAuthStore";
import { Navigate } from "react-router-dom";

export const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
  const { isAuthenticated } = useAuthStore();

  // if (!isAuthenticated) {
  //   return <Navigate to="/auth" replace />;
  // }

  return <>{children}</>;
};
