import useTooltip from "../../hooks/useTooltip/useTooltip"; import { BoxProps, Flex } from "../Box"; import { InfoIcon } from "../Svg"; type InfoTooltip = { text: string; iconColor?: string; } & BoxProps; const InfoTooltip: React.FC> = ({ text, iconColor = "textSubtle", ...props }) => { const { targetRef, tooltip, tooltipVisible } = useTooltip(text, {}); return ( {tooltipVisible && tooltip} ); }; export default InfoTooltip;