import { useEffect, useState } from "react"; import { useMutation } from "blitz"; import { useForm } from "react-hook-form"; import { IoHelpCircle } from "react-icons/io5"; import setTwilioApiFields from "../../mutations/set-twilio-api-fields"; import useCurrentUser from "app/core/hooks/use-current-user"; import HelpModal from "./help-modal"; import Button from "../button"; import SettingsSection from "../settings-section"; type Form = { twilioAccountSid: string; twilioAuthToken: string; }; export default function TwilioApiForm() { const { register, handleSubmit, setValue, formState: { isSubmitting }, } = useForm