import { Button, Form, Input } from 'antd' import { useForm } from 'antd/lib/form/Form' import { useUserContext } from '../../contexts/UserContext' import './style.scss' type Credentials = { username: string password: string } export const Login = () => { const { handleLogin } = useUserContext() const [form] = useForm() const handleSubmit = ({ username, password }: Credentials) => { handleLogin(username, password) } return (
) }