import React, { FormEvent } from "react"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; export default async function Admin() { const handleSubmit = async (e: FormEvent) => { e.preventDefault(); const formData = new FormData(e.currentTarget); const response = await fetch(`/api/auth/admin`, { method: "POST", body: JSON.stringify({ email: formData.get("email"), password: formData.get("password"), }), }); console.log({ response }); }; return (
); }