mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
19 lines
392 B
JavaScript
19 lines
392 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);
|