UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

13 lines (12 loc) 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LabelAndDropDownWithVaryingContent = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const labelAndDropdown_1 = require("./labelAndDropdown"); function LabelAndDropDownWithVaryingContent(props) { const { state, selector, enums, allButtons } = props; const s = selector.optJson(); const selectedEnums = s ? enums[s] : {}; return (0, jsx_runtime_1.jsx)(labelAndDropdown_1.LabelAndDropdown, Object.assign({}, props, { state: state, allButtons: allButtons, enums: selectedEnums })); } exports.LabelAndDropDownWithVaryingContent = LabelAndDropDownWithVaryingContent;