import React from 'react'; import { OverlayArrow, Popover as RACPopover, type PopoverProps as RACPopoverProps, } from 'react-aria-components'; import { Dialog } from '../Dialog/Dialog'; export interface PopoverProps extends Omit { children: React.ReactNode; /** Mandatory when children don't contain a or dialogAriaLabelledBy */ dialogAriaLabel?: string; /** Mandatory when children don't contain a or dialogAriaLabel */ dialogAriaLabelledby?: string; showArrow?: boolean; } export function Popover({ children, dialogAriaLabel, dialogAriaLabelledby, showArrow, ...props }: PopoverProps) { return ( {showArrow && ( )} {children} ); }