import { useMutation } from "blitz"; import { useForm } from "react-hook-form"; import * as Panelbear from "@panelbear/panelbear-js"; import joinWaitlist from "../mutations/join-waitlist"; type Form = { email: string; }; export default function CTAForm() { const [joinWaitlistMutation] = useMutation(joinWaitlist); const { handleSubmit, register, formState: { isSubmitted }, } = useForm
); }