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