import clsx from 'clsx'; import type { PropsWithChildren, ReactNode } from 'react'; import React from 'react'; interface TooltipProps { className?: string; contentClassName?: string; content: ReactNode; offsetX: number; offsetY: number; maxWidth?: number; } /** * Tooltip that displays content on hover */ export default function Tooltip({ className, contentClassName, content, offsetX, offsetY, maxWidth, children, }: PropsWithChildren): JSX.Element { return ( {children} {content} ); }