mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
13 lines
379 B
JavaScript
13 lines
379 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
|
|
import { close } from "../actionCreators";
|
|
|
|
const Close = ({ closeWinamp }) => <div id="close" onClick={closeWinamp} />;
|
|
|
|
const mapStateToProps = () => ({});
|
|
const mapDispatchToProps = dispatch => ({
|
|
closeWinamp: () => dispatch(close())
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Close);
|