import React from 'react';
import classNames from 'classnames';
import { Tooltip, TOOLTIP_PLACEMENT_TYPES } from '../tooltip';
import { jsx as _jsx } from "react/jsx-runtime";
const TooltipTh = ({
  children,
  className,
  column,
  testId,
  ...props
}) => /*#__PURE__*/_jsx("div", {
  ...props,
  "test-id": testId,
  className: classNames('r-th', 'table-header-with-tooltip', className),
  children: /*#__PURE__*/_jsx(Tooltip, {
    content: column.tooltip || column.header,
    placement: TOOLTIP_PLACEMENT_TYPES.TOP,
    children: /*#__PURE__*/_jsx("span", {
      children: children
    })
  })
});
export default TooltipTh;