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