var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
import React from 'react';
import PropTypes from 'prop-types';
import './NonSortableLabel.scss';
import styled from 'styled-components';
export var NonSortableLabel = function (_a) {
    var className = _a.className, label = _a.label, labelHelpText = _a.labelHelpText;
    var title = labelHelpText || label;
    if (!title) {
        return null;
    }
    return (React.createElement("button", { className: [
            className,
            'non-sortable-label',
        ]
            .filter(Boolean)
            .join(' '), title: title }, label));
};
NonSortableLabel.propTypes = {
    className: PropTypes.string,
    label: PropTypes.node.isRequired,
    labelHelpText: PropTypes.string,
};
NonSortableLabel.defaultProps = {
    className: '',
};
export default styled(NonSortableLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
var templateObject_1;
//# sourceMappingURL=NonSortableLabel.js.map