import React from "react"; import { connect } from "react-redux"; import { SELECT_ALL, SELECT_ZERO, INVERT_SELECTION } from "../../actionTypes"; import PlaylistMenu from "./PlaylistMenu"; const SelectionMenu = props => (
  • ); const mapDispatchToProps = { invertSelection: () => ({ type: INVERT_SELECTION }), selectAll: () => ({ type: SELECT_ALL }), selectZero: () => ({ type: SELECT_ZERO }) }; export default connect(null, mapDispatchToProps)(SelectionMenu);