mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
17 lines
400 B
JavaScript
17 lines
400 B
JavaScript
import React from 'react';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {openFileDialog} from '../actionCreators';
|
|
|
|
const Eject = (props) => (
|
|
<div
|
|
id='eject'
|
|
onClick={props.openFileDialog}
|
|
/>
|
|
);
|
|
|
|
const mapDispatchToProps = (dispatch, ownProps) => ({
|
|
openFileDialog: () => dispatch(openFileDialog(ownProps.fileInput))
|
|
});
|
|
|
|
export default connect(() => ({}), mapDispatchToProps)(Eject);
|