import React from 'react';
import { Tooltip, TOOLTIP_DELAY_TYPES, TOOLTIP_PLACEMENT_TYPES } from '../tooltip';
import { jsx as _jsx } from "react/jsx-runtime";
const DropdownItemTooltip = ({
  children,
  option
}) => {
  const {
    tooltipPlacement,
    tooltipText,
    tooltipDocsLink,
    tooltipTestId,
    tooltipId
  } = option;
  const tooltipProps = {
    testId: tooltipTestId,
    content: tooltipText,
    placement: tooltipPlacement || TOOLTIP_PLACEMENT_TYPES.RIGHT,
    tooltipDelayType: TOOLTIP_DELAY_TYPES.SLOW,
    docsLink: tooltipDocsLink,
    tooltipId
  };
  if (!tooltipText) {
    return children;
  }
  return /*#__PURE__*/_jsx(Tooltip, {
    ...tooltipProps,
    children: children
  });
};
export default DropdownItemTooltip;