import { Popover, PopoverArrow, PopoverContent, PopoverTrigger, BoxProps, } from '@chakra-ui/react'; import { PopoverProps } from '@chakra-ui/react'; import { ReactNode } from 'react'; type IAIPopoverProps = PopoverProps & { triggerComponent: ReactNode; triggerContainerProps?: BoxProps; children: ReactNode; styleClass?: string; hasArrow?: boolean; }; const IAIPopover = (props: IAIPopoverProps) => { const { triggerComponent, children, styleClass, hasArrow = true, ...rest } = props; return ( {triggerComponent} {hasArrow && } {children} ); }; export default IAIPopover;