import { jsx as _jsx } from "react/jsx-runtime";
import { SimpleSelect } from '../common/Select/index.js';
import { styled } from '../../styled-components.js';
const MimeLabel = styled.span `
  margin-left: 4px;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  color: var(--text-color-primary);
`;
export function SelectOrLabel({ Label = MimeLabel, Select = SimpleSelect, ...selectProps }) {
    if (selectProps.options.length === 1) {
        return _jsx(Label, { children: selectProps.options[0].value });
    }
    return _jsx(Select, { ...selectProps });
}
//# sourceMappingURL=SelectOrLabel.js.map