blob: 24fde4655f12d19f96d871bc97f1b8db9e9107e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
import React, { Component } from 'react'
// import { Link } from 'react-router-dom'
import { connect } from 'react-redux'
import actions from 'app/actions'
import { ROMAN_NUMERALS } from 'app/constants'
import { Arrow, VolumeControl, PlayButton, PlayerTime } from './viewer.icons'
class ViewerNav extends Component {
componentDidMount() {
}
render() {
const { viewer } = this.props
return (
<div className="viewer-nav">
<div className='nav-row main-nav'>
<div>
<span className="section-link link" onClick={() => actions.viewer.showSection('sectionsNav')}>
<Arrow type={viewer.sectionsNav ? 'down' : 'up'} />
{ROMAN_NUMERALS[0]}
{'. '}
{'Introduction'}
</span>
</div>
<div>
<PlayButton />
<PlayerTime />
<VolumeControl />
</div>
<div>
<span className="next-link link">
Next
<Arrow type={'right'} />
</span>
</div>
</div>
</div>
)
}
}
const mapStateToProps = state => ({
viewer: state.viewer,
})
export default connect(mapStateToProps)(ViewerNav)
/*
- section name, number
- next link
- player
*/
|