lbry-desktop/ui/component/snackBar/index.js
2020-06-16 09:56:32 -04:00

15 lines
391 B
JavaScript

import { connect } from 'react-redux';
import { doDismissToast } from 'redux/actions/notifications';
import { selectToast } from 'redux/selectors/notifications';
import SnackBar from './view';
const perform = dispatch => ({
removeSnack: () => dispatch(doDismissToast()),
});
const select = state => ({
snack: selectToast(state),
});
export default connect(select, perform)(SnackBar);