import { h, Component } from 'preact' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as liveActions from '../live/live.actions' const audio = document.createElement('audio') class AudioPlayer extends Component { constructor(props){ super(props) this.handleClick = this.handleClick.bind(this) } handleClick(e){ this.props.onClick && this.props.onClick() } render() { const { player={} } = this.props return (
{this.props.title}
) } } const mapStateToProps = state => ({ player: state.audioPlayer, }) const mapDispatchToProps = (dispatch, ownProps) => ({ }) export default connect(mapStateToProps, mapDispatchToProps)(AudioPlayer)