"use client" import { useState } from "react" import { useRouter } from "next/navigation" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { useAuth } from "@/contexts/auth-context" export default function LoginPage() { const [email, setEmail] = useState("") const [password, setPassword] = useState("") const router = useRouter() const { login } = useAuth() const handleSubmit = (e: React.FormEvent) => { e.preventDefault() // In a real application, you would validate credentials here login() router.push("/") } return (

Войти

setEmail(e.target.value)} required />
setPassword(e.target.value)} required />
) }