"use client"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { AnimatePresence, motion } from "framer-motion"; import { ReactNode, useState } from "react"; interface TooltipProps { children?: ReactNode; tooltip?: ReactNode; } const Tooltip = ({ children, tooltip }: TooltipProps): JSX.Element => { const [open, setOpen] = useState(false); return ( {children} {open && ( {tooltip} )} ); }; export default Tooltip;