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