import React from "react"; // mobx import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; // react-hook-form import { Controller } from "react-hook-form"; // components import { FormComponentProps, Input, OptionForm, SelectOption } from "components/custom-attributes"; export const SelectAttributeForm: React.FC = observer( ({ control, multiple = false, objectId = "", watch }) => { const { customAttributes: customAttributesStore } = useMobxStore(); const { entityAttributes } = customAttributesStore; const options = entityAttributes?.[objectId]?.[watch("id") ?? ""]?.children; return (
( )} />

Options

{options?.map((option) => ( ))}
); } );