import { useState } from "react"; function ConsentForm({ onConsentApproved, onRejected }) { const [form, setForm] = useState({ over18: false, readConsent: false, hasAudio: false, speaksEnglish: false, }); const handleChange = (e) => { const { name, checked } = e.target; setForm((prev) => ({ ...prev, [name]: checked })); }; const handleSubmit = (e) => { e.preventDefault(); const allChecked = Object.values(form).every(Boolean); if (allChecked) { onConsentApproved(); } else { onRejected(); } }; return (

Consent Form

Your browser doesn't support embedded PDFs. View the consent form

); } export default ConsentForm;