import { getSpace } from '@tamagui/get-token' import type { SizableStackProps } from '@tamagui/stacks' import { Paragraph } from '@tamagui/text' import * as React from 'react' import type { TooltipProps } from './Tooltip' import { Tooltip } from './Tooltip' export type TooltipSimpleProps = TooltipProps & { disabled?: boolean label?: React.ReactNode children?: React.ReactNode contentProps?: SizableStackProps } export const TooltipSimple: React.FC = React.forwardRef( ({ label, children, contentProps, disabled, ...tooltipProps }, ref) => { 'use no memo' const child = React.Children.only(children) if (!label) { return children } return ( {ref && React.isValidElement(child) ? React.cloneElement(child, { ref } as any) : child} {label} ) } )