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) => any; } const CopyableIcon: React.SFC = ({ type, theme, isNew, justCopied, onCopied, }) => { return ( `} onCopy={() => onCopied(type)} >
  • {type}
  • ); }; export default CopyableIcon;