import { jsx } from 'react/jsx-runtime';
import { F as FieldLabel } from './FieldLabel-1g9Y_K44.js';
import { S as SrOnly } from './SrOnly-eUpYGpAT.js';

const SelectFieldLabel = ({
  aiMark,
  label,
  getLabelProps,
  hideLabel = false,
  moreInfo,
  moreInfoOpen,
  required
}) => {
  const labelContent = /* @__PURE__ */ jsx(
    FieldLabel,
    {
      ...getLabelProps(),
      aiMark,
      required,
      moreInfo,
      moreInfoOpen,
      children: label
    }
  );
  if (hideLabel) {
    return /* @__PURE__ */ jsx(SrOnly, { children: labelContent });
  }
  return labelContent;
};

export { SelectFieldLabel as S };
//# sourceMappingURL=SelectFieldLabel-DXgUk8cU.js.map
