import Tippy from '@tippyjs/react' import classNames from 'classnames' import { ReactNode } from 'react' import TooltipIcon from 'components/Icons/tooltip.svg' interface Props { children?: ReactNode | string content: ReactNode | string className?: string delay?: number inderactive?: boolean underline?: boolean } const Tooltip = ({ children, content, className, delay = 0, inderactive = false, underline = false, }: Props) => { return ( document.body} interactive={inderactive} animation={false} delay={[delay, 0]} render={(attrs) => { return (
{content}
) }} > {children ? ( {children} ) : ( )}
) } export default Tooltip