// We do use all the classes in this file currently, but we // index into them with styles[position], which CSS Modules doesn't pick up. // eslint-disable-next-line css-modules/no-unused-class import styles from './Tooltip.module.css' interface TooltipProps extends React.PropsWithChildren { position?: | 'top' | 'bottom' | 'left' | 'right' | 'blockStart' | 'blockEnd' | 'inlineStart' | 'inlineEnd' className?: string delay?: number hoverOnly?: boolean } export default function Tooltip({ children, position = 'top', className, delay = 200, hoverOnly = false, }: TooltipProps) { return (