lbry-desktop/ui/js/component/snackBar/index.js
2017-11-13 16:02:23 -05:00

15 lines
431 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doRemoveSnackBarSnack } from "redux/actions/app";
import { selectSnackBarSnacks } from "redux/selectors/app";
import SnackBar from "./view";
const perform = dispatch => ({
removeSnack: () => dispatch(doRemoveSnackBarSnack()),
});
const select = state => ({
snacks: selectSnackBarSnacks(state),
});
export default connect(select, perform)(SnackBar);