mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
12 lines
389 B
JavaScript
12 lines
389 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);
|