import React from 'react'; import { Tooltip } from 'antd'; import { Command } from 'gg-editor'; import IconFont from '../../common/IconFont'; import styles from './index.less'; const upperFirst = (str: string) => { return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase()); }; interface ToolbarButtonProps { command: string; icon?: string; text?: string; } const ToolbarButton: React.SFC = props => { const { command, icon, text } = props; return ( ); }; export default ToolbarButton;