"use client"; import * as React from "react"; import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { cn } from "@/lib/utils"; export const TooltipProvider = TooltipPrimitive.Provider; export const TooltipRoot = TooltipPrimitive.Root; export const TooltipTrigger = TooltipPrimitive.Trigger; export const TooltipContent = React.forwardRef, React.ComponentPropsWithoutRef>( function TooltipContent({ className, sideOffset = 6, ...props }, ref) { return ( ); }, ); export function Tooltip({ content, children, side, align, asChild = true }: { content: React.ReactNode; children: React.ReactNode; side?: "top" | "bottom" | "left" | "right"; align?: "start" | "center" | "end"; asChild?: boolean }) { if (!content) return <>{children}; return ( {children} {content} ); }