// react-hook-form import { Controller } from "react-hook-form"; // components import { FormComponentProps, Input } from "components/custom-attributes"; // ui import { CustomSelect } from "components/ui"; // constants import { CUSTOM_ATTRIBUTE_UNITS } from "constants/custom-attributes"; export const RelationAttributeForm: React.FC = ({ control }) => (
( )} /> ( {value}} value={value} onChange={onChange} buttonClassName="bg-custom-background-100 !px-3 !py-2 !border-custom-border-200 !rounded" optionsClassName="w-full" input > {CUSTOM_ATTRIBUTE_UNITS.map((unit) => { if (unit.value === "user") return null; return ( {unit.label} ); })} )} />

Selection type

);