import { FC, useRef } from 'react'; import * as Popper from 'popper.js'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faInfoCircle as infoIcon } from '@fortawesome/free-solid-svg-icons'; import { UncontrolledTooltip } from 'reactstrap'; interface InfoTooltipProps { className?: string; placement: Popper.Placement; } export const InfoTooltip: FC = ({ className = '', placement, children }) => { const ref = useRef(); const refCallback = (el: HTMLSpanElement) => { ref.current = el; }; return ( <> ref.current) as any} placement={placement}>{children} ); };