import React from 'react'; import { Arrow, Content, Portal, type TooltipArrowProps, type TooltipContentProps, } from '@radix-ui/react-tooltip'; import { tooltipTheme } from '../Tooltip.theme'; export interface ContentProps extends TooltipContentProps { hasArrow?: boolean; arrowProps?: TooltipArrowProps; } export const TooltipContent = ({ children, arrowProps, className, hasArrow = true, ...props }: ContentProps) => { const { content, arrow } = tooltipTheme(); return ( {hasArrow && ( )} {children} ); };