import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import TagColorPreview from './tagColorPreview'
import romanize from '../modules/romanize'
import helpers from '../modules/helpers'
export const ReaderEditButton = ({onClick}) =>
Edit
export const ReaderAnnotateButton = ({onClick}) =>
Annotate
export const ChapterButton = ({chapter, currentChapter, onClick}) =>
{romanize(chapter.number)}. {chapter.title}
export const NoteButton = ({note, currentNote, onClick}) =>
{note.title}
export const TagButton = ({tag, currentTag, onClick}) =>
{tag.title}
export const HighlightButton = ({toggle, onClick, size='lg'}) =>
{toggle ? 'Hide Notes' : 'Highlight Notes'}
export const SearchButton = ({input, onClick}) =>
export const NewChapterButton = ({onClick}) =>
export const NewDocumentButton = ({onClick, docType}) =>
New {helpers.docTypeName(docType)}
// Fairly abstracted
export const AnnotatorNewButton = ({onClick, disabled}) =>
New Annotation
export const AnnotatorRemoveButton = ({onClick, disabled}) =>
Remove Annotation
export const EditorToolButton = ({glyph, onClick}) =>
export const EditorDeleteToolButton = ({disabled}) =>
Delete
export const EditorCancelButton = ({onClick}) =>
Cancel
export const EditorSubmitButton = ({onClick}) =>
Submit
export const EditorDeleteButton = ({onClick}) =>
Delete
ReaderEditButton.propTypes = {
onClick: PropTypes.func,
}
ReaderAnnotateButton.propTypes = {
onClick: PropTypes.func,
}
ChapterButton.propTypes = {
chapters: PropTypes.arrayOf(PropTypes.object),
currentChapter: PropTypes.object,
onClick: PropTypes.func,
}
NoteButton.propTypes = {
notes: PropTypes.arrayOf(PropTypes.object),
currentNotes: PropTypes.object,
onClick: PropTypes.func,
}
HighlightButton.propTypes = {
toggle: PropTypes.bool,
onClick: PropTypes.func,
}
SearchButton.propTypes = {
searchInput: PropTypes.string,
onClick: PropTypes.func,
}
NewChapterButton.propTypes = {
onClick: PropTypes.func,
}
NewDocumentButton.propTypes = {
docType: PropTypes.string,
onClick: PropTypes.func,
}
AnnotatorNewButton.propTypes = {
disabled: PropTypes.bool,
onClick: PropTypes.func,
}
AnnotatorRemoveButton.propTypes = {
disabled: PropTypes.bool,
onClick: PropTypes.func,
}
EditorToolButton.propTypes = {
glyph: PropTypes.string,
onClick: PropTypes.func,
}
EditorDeleteToolButton.propTypes = {
disabled: PropTypes.bool,
}
EditorCancelButton.propTypes = {
onClick: PropTypes.func,
}
EditorSubmitButton.propTypes = {
onClick: PropTypes.func,
}
EditorDeleteButton.propTypes = {
onClick: PropTypes.func,
}