'use client' import * as TooltipPrimitive from '@radix-ui/react-tooltip' import {clsx} from 'clsx' import { ComponentPropsWithoutRef, ReactNode } from 'react' type TooltipProps = Omit< ComponentPropsWithoutRef & Pick< ComponentPropsWithoutRef, 'open' | 'defaultOpen' | 'onOpenChange' >, 'content' > & { content: ReactNode } const Tooltip = ({ children, content, sideOffset = 4, className, open, defaultOpen, onOpenChange, ...props }: TooltipProps) => ( {children} {content} ) export { Tooltip }