import React, { PropTypes } from 'react' import FontAwesome from 'react-fontawesome' import Icon from '../Icon' import * as helpers from '../../helpers' export default class AddToQueueModal extends React.Component{ constructor(props){ super(props) this.state = { uris: '', at_position: 'end' } } handleSubmit(e){ var uris = this.state.uris.split(',') if (this.state.at_position == 'next'){ this.props.mopidyActions.enqueueURIsNext(uris) }else{ this.props.mopidyActions.enqueueURIs(uris) } this.props.uiActions.closeModal() } render(){ return (