diff options
Diffstat (limited to 'animism-align/frontend/app/views/viewer/player/player.transcript.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/player/player.transcript.js | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/player.transcript.js b/animism-align/frontend/app/views/viewer/player/player.transcript.js new file mode 100644 index 0000000..8c992e7 --- /dev/null +++ b/animism-align/frontend/app/views/viewer/player/player.transcript.js @@ -0,0 +1,55 @@ +import React, { Component } from 'react' +// import { Link } from 'react-router-dom' +// import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' + +import actions from 'app/actions' + +import ParagraphList from 'app/views/paragraph/components/paragraph.list' +import { transcriptElementLookup } from '../transcript/components' + +class PlayerTranscript extends Component { + constructor(props){ + super(props) + this.handleClose = this.handleClose.bind(this) + this.handleAnnotationClick = this.handleAnnotationClick.bind(this) + this.handleParagraphDoubleClick = this.handleParagraphDoubleClick.bind(this) + } + + handleAnnotationClick(e, annotation) { + console.log(annotation) + } + + handleParagraphDoubleClick(e, paragraph) { + return + } + + handleClose() { + } + + render() { + const { paragraphs } = this.props.section + return ( + <div className="player-transcript"> + <div className='content'> + <ParagraphList + paragraphs={paragraphs} + paragraphElementLookup={transcriptElementLookup} + onAnnotationClick={this.handleAnnotationClick} + onParagraphDoubleClick={this.handleParagraphDoubleClick} + /> + </div> + </div> + ) + } +} + +const mapStateToProps = state => ({ + // viewer: state.viewer, +}) + +const mapDispatchToProps = dispatch => ({ + // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(PlayerTranscript) |
