diff options
Diffstat (limited to 'app/client/common/player.component.js')
| -rw-r--r-- | app/client/common/player.component.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/client/common/player.component.js b/app/client/common/player.component.js new file mode 100644 index 0000000..6b3d56f --- /dev/null +++ b/app/client/common/player.component.js @@ -0,0 +1,18 @@ +import { h, Component } from 'preact' +import { connect } from 'react-redux' + +function Player(props) { + return ( + <div className='player'> + <canvas width={props.width} height={props.height} /> + </div> + ) +} + +const mapStateToProps = state => ({ +}) + +const mapDispatchToProps = (dispatch, ownProps) => ({ +}) + +export default connect(mapStateToProps, mapDispatchToProps)(Player) |
