import React from "react"; import { connect } from "react-redux"; import * as Actions from "../../actionCreators"; import PlaylistMenu from "./PlaylistMenu"; import { Dispatch } from "../../types"; /* eslint-disable no-alert */ interface DispatchProps { removeAllTracks: () => void; } const ListMenu = (props: DispatchProps) => (
alert("Not supported in Webamp")} />
alert("Not supported in Webamp")} /> ); const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({ removeAllTracks: () => dispatch(Actions.removeAllTracks()), }); export default connect(null, mapDispatchToProps)(ListMenu);