import React, { Component } from 'react' // import { Link } from 'react-router-dom' import { connect } from 'react-redux' import actions from 'app/actions' import { Arrow } from '../nav/viewer.icons' import ViewerSectionsShare from './viewer.sections.share' import ViewerSectionsSubscribe from './viewer.sections.subscribe' import ViewerSectionsFootnotes from './viewer.sections.footnotes' class ViewerSectionsNav extends Component { render() { const { viewer } = this.props return (
{ actions.viewer.hideNavComponent('credits') actions.viewer.toggleNavComponent('checklist') }}>
{'Works List'}
{ actions.viewer.hideNavComponent('checklist') actions.viewer.toggleNavComponent('credits') }}>
{'Credits'}
actions.viewer.showNavComponent('subscribe')}> {'Subscribe'}
actions.viewer.showNavComponent('share')}> {'Share'}
actions.viewer.showNavComponent('footnotes')}> {'Notes'}
actions.viewer.openTranscript()}> {'Transcript'}
) } } const mapStateToProps = state => ({ viewer: state.viewer, }) export default connect(mapStateToProps)(ViewerSectionsNav)