import OutReactTooltip from "react-tooltip";
import React from "react";
import "./Tooltip.scss";

export interface IJDToolTipProps extends OutReactTooltip.Props {
  children?: string | JSX.Element;
}

const JDToolTip: React.FC<IJDToolTipProps> = ({children, ...props}) => (
  <OutReactTooltip class="JDtooltip" {...props}>
    {children}
  </OutReactTooltip>
);

export default JDToolTip;
export const ReactTooltip = OutReactTooltip;
