import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { createStore, bindActionCreators } from 'redux' import * as uiActions from '../../services/ui/actions' import * as helpers from '../../helpers' import Icon from '../Icon' import Thumbnail from '../Thumbnail' import ArtistSentence from '../ArtistSentence' class KioskModeModal extends React.Component{ constructor(props){ super(props) } handleClick(e, connectionid){ e.preventDefault() this.props.uiActions.closeModal() return false; } render(){ if (this.props.current_track && this.props.current_track.album && this.props.current_track.album.images){ var images = this.props.current_track.album.images } else { var images = [] } return (
{ this.props.current_track ? this.props.current_track.name : - }
{ this.props.current_track ? : }
) } } const mapStateToProps = (state, ownProps) => { return { current_track: state.ui.current_track } } const mapDispatchToProps = (dispatch) => { return { uiActions: bindActionCreators(uiActions, dispatch) } } export default connect(mapStateToProps, mapDispatchToProps)(KioskModeModal)