lbry-desktop/ui/component/snackBar/index.js
2019-11-11 13:27:29 -05:00

16 lines
332 B
JavaScript

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