import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import React from "react"; import { useIsPlatform } from "@calcom/atoms/monorepo"; import classNames from "@calcom/lib/classNames"; export function Tooltip({ children, content, open, defaultOpen, onOpenChange, delayDuration, side = "top", ...props }: { children: React.ReactNode; content: React.ReactNode; delayDuration?: number; open?: boolean; defaultOpen?: boolean; side?: "top" | "right" | "bottom" | "left"; onOpenChange?: (open: boolean) => void; } & TooltipPrimitive.TooltipContentProps) { const isPlatform = useIsPlatform(); const Content = ( {content} ); return ( {children} {isPlatform ? <>{Content} : {Content}} ); } export default Tooltip;