import { CSSProperties, useState } from 'react'; import { ConfigProvider, Popover } from 'antd'; import { TooltipPlacement } from 'antd/es/tooltip'; import cl from 'classnames'; import styles from './index.module.css'; type AIBPopoverContentType = { label: string; icon: string; desc: string; link: string; id: string; }; function isAIBPopoverContentType(item: any): item is AIBPopoverContentType { return ( typeof item === 'object' && item !== null && item.hasOwnProperty('label') && item.hasOwnProperty('icon') && item.hasOwnProperty('desc') ); } const AIBPopoverDropdown = (content: string[] | AIBPopoverContentType[]) => { if (content.length === 0) return; return (