// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import { Col } from 'antd/lib/grid'; import Icon from 'antd/lib/icon'; import Tooltip from 'antd/lib/tooltip'; import { FirstIcon, BackJumpIcon, PreviousIcon, PlayIcon, PauseIcon, NextIcon, ForwardJumpIcon, LastIcon, } from 'icons'; interface Props { playing: boolean; playPauseShortcut: string; nextFrameShortcut: string; previousFrameShortcut: string; forwardShortcut: string; backwardShortcut: string; onSwitchPlay(): void; onPrevFrame(): void; onNextFrame(): void; onForward(): void; onBackward(): void; onFirstFrame(): void; onLastFrame(): void; } function PlayerButtons(props: Props): JSX.Element { const { playing, playPauseShortcut, nextFrameShortcut, previousFrameShortcut, forwardShortcut, backwardShortcut, onSwitchPlay, onPrevFrame, onNextFrame, onForward, onBackward, onFirstFrame, onLastFrame, } = props; return (