'use client'; import { Poppins } from 'next/font/google' import { Check } from 'lucide-react' import { useState, useEffect } from 'react'; import { useRouter } from 'next/navigation'; import logo from '../images/logo.svg'; import Image from "next/image"; import {Input} from "@components/ui/input"; import {white} from "next/dist/lib/picocolors"; export default function Home() { const [password, setPassword] = useState(''); const router = useRouter(); useEffect(() => { if (localStorage.getItem('@password')) { router.push('/play'); } }, [router]); function handleSubmit(event: React.FormEvent) { event.preventDefault(); localStorage.setItem('@password', password); router.push('/play'); } return (
{"Logo"}
setPassword(e.target.value)}>
); }