import React from "react"; import classnames from "classnames"; import * as Selectors from "../../selectors"; import * as Actions from "../../actionCreators"; import { useTypedSelector, useActionCreator } from "../../hooks"; function togglePlaylist() { return Actions.toggleWindow("playlist"); } const PlaylistToggleButton = React.memo(() => { const selected = useTypedSelector(Selectors.getWindowOpen)("playlist"); const handleClick = useActionCreator(togglePlaylist); return (
); }); export default PlaylistToggleButton;