{#if arg.type == 'text'} {:else if arg.type == 'stringlist'} {:else if arg.type == 'number'} {:else if arg.type == 'checkbox'} {:else if arg.type == 'select'} _.isString(opt) ? { label: opt, value: opt } : { label: opt.name, value: opt.value } )} disabled={arg.disabledFn ? arg.disabledFn($values) : arg.disabled} /> {:else if arg.type == 'dropdowntext'} { return arg.options.map(opt => ({ text: _.isString(opt) ? opt : opt.name, onClick: () => setFieldValue(name, _.isString(opt) ? opt : opt.value), })); }} disabled={arg.disabledFn ? arg.disabledFn($values) : arg.disabled} /> {/if}