blob: 546c650817479ebb9b48aabc66d76952ffe27045 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { h, Component } from 'preact'
import { connect } from 'react-redux'
function Player(props) {
const className = props.fullscreen ? 'player fullscreen' : 'player'
return (
<div className={className}>
<canvas width={props.width} height={props.height} />
</div>
)
}
const mapStateToProps = state => ({
})
const mapDispatchToProps = (dispatch, ownProps) => ({
})
export default connect(mapStateToProps, mapDispatchToProps)(Player)
|