import type { BlitzPage } from "blitz"; import { Routes, useMutation, useRouter } from "blitz"; import clsx from "clsx"; import { useEffect } from "react"; import { useForm } from "react-hook-form"; import OnboardingLayout from "../../components/onboarding-layout"; import useCurrentCustomer from "../../../core/hooks/use-current-customer"; import setTwilioApiFields from "../../mutations/set-twilio-api-fields"; type Form = { twilioAccountSid: string; twilioAuthToken: string; }; const StepTwo: BlitzPage = () => { const { register, handleSubmit, setValue, formState: { isSubmitting }, } = useForm