lbry-desktop/src/renderer/component/snackBar/index.js

17 lines
340 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2018-04-19 20:49:47 +02:00
import { selectSnack, doHideNotification } from 'lbry-redux';
import SnackBar from './view';
2017-05-23 09:21:21 +02:00
2017-06-06 06:21:55 +02:00
const perform = dispatch => ({
2018-04-19 20:49:47 +02:00
removeSnack: () => dispatch(doHideNotification()),
2017-06-06 06:21:55 +02:00
});
2017-05-23 09:21:21 +02:00
2017-06-06 06:21:55 +02:00
const select = state => ({
2018-04-19 20:49:47 +02:00
snack: selectSnack(state),
2017-06-06 06:21:55 +02:00
});
2017-05-23 09:21:21 +02:00
2018-10-31 17:46:33 +01:00
export default connect(
select,
perform
)(SnackBar);