"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _tooltip = require("../tooltip");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const TooltipTh = ({
  children,
  className,
  column,
  testId,
  ...props
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
  ...props,
  "test-id": testId,
  className: (0, _classnames.default)('r-th', 'table-header-with-tooltip', className),
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.Tooltip, {
    content: column.tooltip || column.header,
    placement: _tooltip.TOOLTIP_PLACEMENT_TYPES.TOP,
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
      children: children
    })
  })
});
var _default = exports.default = TooltipTh;