"use client"; import { ReactNode, useState } from "react"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import useWindowSize from "@/lib/hooks/use-window-size"; import Leaflet from "./leaflet"; export default function Tooltip({ children, content, fullWidth, }: { children: ReactNode; content: ReactNode | string; fullWidth?: boolean; }) { const [openTooltip, setOpenTooltip] = useState(false); const { isMobile, isDesktop } = useWindowSize(); return ( <> {/* {isMobile && ( )} */} {/* {openTooltip && isMobile && ( {typeof content === "string" ? ( {content} ) : ( content )} )} */} { {children} {typeof content === "string" ? (
{content}
) : ( content )}
} ); }