'use client' import { Arrow, Content, Portal, Provider, Root, Trigger, } from '@radix-ui/react-tooltip' import type { ComponentProps, FC, Ref } from 'react' import styles from './ArrowTooltip.module.css' type ArrowTooltipContentProps = ComponentProps & { showArrow?: boolean ref?: Ref } export const ArrowTooltipContent = ({ showArrow = true, sideOffset = 5, children, ref, ...props }: ArrowTooltipContentProps) => { return ( {children} {showArrow && } ) } ArrowTooltipContent.displayName = 'ArrowTooltipContent' export const ArrowTooltipProvider: FC> = ({ children, ...props }) => { return ( {children} ) } export const ArrowTooltipPortal = Portal export const ArrowTooltipRoot = Root export const ArrowTooltipTrigger = Trigger