// jshint esversion: 6 import React from "react"; import { AnchorButton, Tooltip } from "@blueprintjs/core"; import { tooltipHoverOpenDelay } from "../../globals"; function InformationMenu(props) { const { undoDisabled, redoDisabled, dispatch } = props; return (
{ dispatch({ type: "@@undoable/undo" }); }} style={{ cursor: "pointer" }} data-testid="undo" /> { dispatch({ type: "@@undoable/redo" }); }} style={{ cursor: "pointer" }} data-testid="redo" />
); } export default InformationMenu;