"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const SortableTableThButton = ({
  children,
  onClick,
  testId,
  isDisabled = false,
  isActive = false,
  className = ''
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
    className: (0, _classnames.default)(`button sortable-table-th-button ${className}`, {
      active: !isDisabled && isActive,
      disabled: isDisabled
    }),
    onClick: onClick,
    disabled: isDisabled,
    "test-id": testId,
    children: children
  });
};
var _default = exports.default = SortableTableThButton;