import React, { Component } from 'react' // import { Link } from 'react-router-dom' import { connect } from 'react-redux' import actions from 'app/actions' import { Arrow } from './viewer.icons' import ViewerSectionsNav from './viewer.sections.nav' import { ROMAN_NUMERALS } from 'app/constants' import { thumbnailURL } from 'app/views/align/align.util' class ViewerSections extends Component { componentDidMount() { } render() { const { sections } = this.props return (
{sections.map(section => { console.log(section) return (
{ROMAN_NUMERALS[section.index]}: {section.title}
) })}
) } } const mapStateToProps = state => ({ sections: state.viewer.sections, }) export default connect(mapStateToProps)(ViewerSections)