import React, { Component } from 'react'
import { connect } from 'react-redux'
import actions from 'app/actions'
import { Arrow } from '../nav/viewer.icons'
import { EfluxClose } from '../nav/eflux.icons'
class ViewerSectionsFootnotes extends Component {
render() {
const { footnoteList } = this.props
return (
actions.viewer.hideNavComponent('footnotes')}>
{EfluxClose}
{footnoteList.map(note => (
{note.footnote_id}
actions.viewer.seekToTimestamp(note.start_ts)}>
{'Go to text'}
))}
)
}
}
const FootnotesLink = ({ type }) => (
actions.viewer.hideNavComponent('footnotes')}>
{'Notes'}
)
const mapStateToProps = state => ({
footnoteList: state.viewer.footnoteList,
})
export default connect(mapStateToProps)(ViewerSectionsFootnotes)