"use client"; import React, { useState } from "react"; import TextField from "@/app/components/fields/textfield"; import TopHeader from "@/app/components/topHeader/TopHeader"; import TopToolTip from "@/app/components/topToolTip/TopToolTip"; import globalStyle from "../../globalStyle.module.css"; import createAgentStyle from "./styles.module.css"; import Prompts from "@/app/components/prompts/Prompts"; import useAgentForm from "@/app/hooks/useAgentForm"; import Alert from "@/app/components/alerts/Alert"; const AddAgentPage = () => { const [isChecked, setIsChecked] = useState(false); const handleCheckboxChange = (e) => { setIsChecked(e.target.checked); }; const { register, handleSubmit, errors, onSubmit, triggerAlert, setTriggerAlert, } = useAgentForm(); return (