import React, { useState } from "react"; import { Button, Input } from "antd"; import { useAuthenticateUser } from "../../hooks/useAuthenticateUser"; export const LogIn = () => { const { isLoading, error, authenticate } = useAuthenticateUser(); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); return (
logo
setEmail(ev.target.value)} /> setPassword(ev.target.value)} /> {error ? (
{error}
) : ( <> )}
); };