'use client'; import { FC, ReactNode, useState } from 'react'; import { cn } from '@/lib/utils'; interface Props { lines: string[]; children: ReactNode; className?: string; triggerClassName?: string; } const Hint: FC = ({ lines, children, className, triggerClassName }) => { const [open, setOpen] = useState(false); // an animation that lands on a transform turns this wrapper into a stacking context, // so the tooltip can only reach above the following rows by raising the wrapper itself return ( {lines.map((line) => ( {line} ))} ); }; export default Hint;