import { jsx as _jsx } from "react/jsx-runtime";
import { useStyleConfig } from '../core';
import Label from '../label';
import { isString } from '../utils';
import { useSelectContext } from './context';
export const SelectLabel = ({ disabled, id, label, labelMarkOptional, labelTooltipText }) => {
    const styles = useStyleConfig('Select', useSelectContext());
    return isString(label) ? (_jsx(Label, { "aria-disabled": disabled, className: "vui-input-label", htmlFor: id, markAsOptional: labelMarkOptional, mb: 0.5, text: label, tooltipText: labelTooltipText, ...styles.label })) : (label);
};
SelectLabel.displayName = 'SelectLabel';
export default SelectLabel;
//# sourceMappingURL=selectLabel.js.map