import { useAuth } from "../providers/AuthProvider"; import { useEffect } from "react"; import { useNavigate } from "react-router-dom"; type InputType = { label: string; forLabel: string; type: "password" | "email"; }; const Input = ({ label, forLabel, type }: InputType) => { return (
); }; export default function LogIn() { const auth = useAuth(); const navigate = useNavigate(); useEffect(() => { if (auth.user) navigate("/"); }, [auth.user]); return (

Login


); }