| import * as React from 'react'; |
| import { Tooltip } from 'antd'; |
| import classNames from 'classnames'; |
| import * as AntdIcons from '@ant-design/icons'; |
| import type { ThemeType } from './index'; |
| import styles from './style.less'; |
| export interface CopyableIconProps { |
| justCopied: string | null; |
| onSelect: (type: string, text: string) => any; |
| const CopyableIcon: React.FC<CopyableIconProps> = ({ |
| const className = classNames({ |
| copied: justCopied === name, |
| <li className={className} |
| {React.createElement(allIcons[name], { className: styles.anticon })} |
| {/* <span className={styles.anticonClass}> |
| <Badge dot={isNew}>{name}</Badge> |
| export default CopyableIcon; |