// react-hook-form import { Controller, useForm } from "react-hook-form"; // headless ui import { Disclosure } from "@headlessui/react"; // ui import { ToggleSwitch } from "components/ui"; import { Input } from "../input"; // icons import { ChevronDown } from "lucide-react"; // types import { ICustomAttribute } from "types"; // constants import { CUSTOM_ATTRIBUTES_LIST } from "constants/custom-attributes"; type Props = {}; const defaultFormValues: Partial = { default_value: "", display_name: "", is_required: false, }; export const UrlAttributeForm: React.FC = () => { const { control } = useForm({ defaultValues: defaultFormValues }); const typeMetaData = CUSTOM_ATTRIBUTES_LIST.url; return ( {({ open }) => ( <>
{typeMetaData.label}
( )} /> ( )} />
( )} /> Mandatory field
)} ); };