import * as PopoverPrimitive from '@radix-ui/react-popover'; import classNames from 'classnames'; import { getIntentBorder } from '../../utils/intent'; import type { Intent } from '../../utils/intent'; export interface PopoverProps extends PopoverPrimitive.PopoverProps { trigger: React.ReactNode | string; children: React.ReactNode; open?: boolean; onChange?: (open: boolean) => void; intent?: Intent; } export const Popover = ({ trigger, children, open, onChange, intent, }: PopoverProps) => { return ( onChange?.(x)}> {trigger} {children} ); };