lbry-desktop/ui/component/snackBar/index.js

17 lines
332 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { selectToast, doDismissToast } 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 => ({
removeSnack: () => dispatch(doDismissToast()),
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 => ({
snack: selectToast(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);