webamp/js/components/MainWindow/Close.tsx
Jordan Eldredge d8b33e4795 Start using react redux hooks (#845)
* Upgrade react-redux

* Upgrade react-redux types

* Start adopting react-redux hooks
2019-11-30 13:42:53 -08:00

12 lines
341 B
TypeScript

import React from "react";
import ClickedDiv from "../ClickedDiv";
import { useActionCreator } from "../../hooks";
import * as Actions from "../../actionCreators";
const Close = React.memo(() => {
const close = useActionCreator(Actions.close);
return <ClickedDiv id="close" onClick={close} title="Close" />;
});
export default Close;