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 './components' class Transcript extends Component { constructor(props){ super(props) this.handleClose = this.handleClose.bind(this) this.handleAnnotationClick = this.handleAnnotationClick.bind(this) this.handleParagraphDoubleClick = this.handleParagraphDoubleClick.bind(this) } componentDidMount() { actions.transcript.buildAllParagraphs() } handleAnnotationClick(e, paragraph, annotation) { // console.log(annotation) actions.viewer.seekToTimestamp(paragraph.start_ts) } handleParagraphDoubleClick(e, paragraph) { return } handleClose() { actions.viewer.hideComponent('transcript') } render() { const { viewer, paragraphs } = this.props return (
) } } const mapStateToProps = state => ({ viewer: state.viewer, paragraphs: state.paragraph.paragraphs, }) const mapDispatchToProps = dispatch => ({ // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), }) export default connect(mapStateToProps, mapDispatchToProps)(Transcript)