"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectLabel = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const core_1 = require("../core");
const label_1 = __importDefault(require("../label"));
const utils_1 = require("../utils");
const context_1 = require("./context");
const SelectLabel = ({ disabled, id, label, labelMarkOptional, labelTooltipText }) => {
    const styles = (0, core_1.useStyleConfig)('Select', (0, context_1.useSelectContext)());
    return (0, utils_1.isString)(label) ? ((0, jsx_runtime_1.jsx)(label_1.default, Object.assign({ "aria-disabled": disabled, className: "vui-input-label", htmlFor: id, markAsOptional: labelMarkOptional, mb: 0.5, text: label, tooltipText: labelTooltipText }, styles.label))) : (label);
};
exports.SelectLabel = SelectLabel;
exports.SelectLabel.displayName = 'SelectLabel';
exports.default = exports.SelectLabel;
//# sourceMappingURL=selectLabel.js.map