import React, { PropTypes } from 'react'; import { List } from 'immutable'; import ToolbarButton from './ToolbarButton'; import { Icon } from '../../UI'; import styles from './Toolbar.css'; function Toolbar(props) { const { onH1, onH2, onBold, onItalic, onLink, onToggleMode, rawMode } = props; return (
); } Toolbar.propTypes = { onH1: PropTypes.func.isRequired, onH2: PropTypes.func.isRequired, onBold: PropTypes.func.isRequired, onItalic: PropTypes.func.isRequired, onLink: PropTypes.func.isRequired, onToggleMode: PropTypes.func.isRequired, rawMode: PropTypes.bool, }; export default Toolbar;