import React from "react"; import * as Selectors from "../../selectors"; import * as Actions from "../../actionCreators"; import PlaylistMenu from "./PlaylistMenu"; import { useTypedSelector, useActionCreator } from "../../hooks"; const AddMenu = () => { const nextIndex = useTypedSelector(Selectors.getTrackCount); const addDirAtIndex = useActionCreator(Actions.addDirAtIndex); const addFilesAtIndex = useActionCreator(Actions.addFilesAtIndex); return (
window.alert("Not supported in Webamp")} />
addDirAtIndex(nextIndex)} />
addFilesAtIndex(nextIndex)} /> ); }; export default AddMenu;