"use strict";var __rest=this&&this.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(r[o[l]]=e[o[l]])}return r},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SelectOrLabel=void 0;const jsx_runtime_1=require("react/jsx-runtime"),styled_components_1=__importDefault(require("styled-components")),Select_1=require("../common/Select"),MimeLabel=styled_components_1.default.span`
  margin-left: 4px;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  color: var(--text-color-primary);
`;function SelectOrLabel(e){var{Label:t=MimeLabel,Select:r=Select_1.SimpleSelect}=e,o=__rest(e,["Label","Select"]);return 1===o.options.length?(0,jsx_runtime_1.jsx)(t,{children:o.options[0].value}):(0,jsx_runtime_1.jsx)(r,Object.assign({},o))}exports.SelectOrLabel=SelectOrLabel;
//# sourceMappingURL=SelectOrLabel.js.map