import React, { FormEvent, useState } from "react"; export function Quiz({ next }: { next: () => void }) { const labelClassName = "block text-sm font-medium text-gray-700 mb-2"; const inputClassName = "appearance-none block px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-empirica-500 focus:border-empirica-500 sm:text-sm"; const [sum, setSum] = useState(""); const [horse, setHorse] = useState(""); function handleSubmit(e: FormEvent) { e.preventDefault(); if (sum !== "4" || horse !== "white") { alert("Incorrect! Read the instructions, and please try again."); } else { next(); } } return (