import * as React from 'react'; import CopyToClipboard from 'react-copy-to-clipboard'; import { Icon as AntdIcon, Badge } from 'antd'; import { ThemeType, IconProps } from '../../../../components/icon'; const Icon: React.SFC = AntdIcon; export interface CopyableIconProps { type: string; theme: ThemeType; isNew: boolean; justCopied: string | null; onCopied: (type: string, text: string) => any; } const CopyableIcon: React.SFC = ({ type, theme, isNew, justCopied, onCopied, }) => { return ( ` : `` } onCopy={(text: string) => onCopied(type, text)} >
  • {type}
  • ); }; export default CopyableIcon;