'use client'; import { signIn } from 'next-auth/react'; import { useState } from 'react'; import { Input } from '../ui/input'; import { Check } from 'lucide-react'; export function LoginForm() { const [password, setPassword] = useState(''); async function handleSubmit(event: React.FormEvent) { event.preventDefault(); console.log('Trying to sign in'); await signIn('credentials', { key: password, callbackUrl: '/play', }); } return (
setPassword(e.target.value)}>
); }