// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import Icon from 'antd/lib/icon'; import Tooltip from 'antd/lib/tooltip'; import { CursorIcon } from 'icons'; import { ActiveControl } from 'reducers/interfaces'; import { Canvas } from 'cvat-canvas-wrapper'; interface Props { canvasInstance: Canvas; cursorShortkey: string; activeControl: ActiveControl; } function CursorControl(props: Props): JSX.Element { const { canvasInstance, activeControl, cursorShortkey, } = props; return ( canvasInstance.cancel() : undefined } /> ); } export default React.memo(CursorControl);