14 lines
391 B
JavaScript
14 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);
|