import React from 'react' import PropTypes from 'prop-types' import { ReaderAnnotateButton, ReaderEditButton, EditorToolButton, EditorDeleteToolButton, AnnotatorNewButton, AnnotatorRemoveButton } from './button' export const ReadModeTopBar = ({setMode}) =>
setMode('ANNOTATE_MODE')}/>
setMode('EDIT_MODE')} />
export const EditModeTopBar = ({editorState, onToolButtonClick, disabled}) =>
onToolButtonClick(editorState, 'BOLD')}/> onToolButtonClick(editorState, 'ITALIC')}/> onToolButtonClick(editorState, 'UNDERLINE')}/> onToolButtonClick(editorState, 'header-two')}/>
export const AnnotateModeTopBar = ({onNewAnnotationClick, onRemoveAnnotationClick, addDisabled, removeDisabled}) =>
ReadModeTopBar.propTypes = { setMode: PropTypes.func, } EditModeTopBar.propTypes = { editorState: PropTypes.object, onToolButtonClick: PropTypes.func, disabled: PropTypes.bool, } AnnotateModeTopBar.propTypes = { onNewAnnotationClick: PropTypes.func, onRemoveAnnotationClick: PropTypes.func, onAddDisabled: PropTypes.bool, removeDisabled: PropTypes.bool, }