// Copyright (C) 2020-2022 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import Text from 'antd/lib/typography/Text'; import Button from 'antd/lib/button'; import { LeftOutlined, RightOutlined } from '@ant-design/icons'; import CVATTooltip from 'components/common/cvat-tooltip'; interface Props { currentLabel: string; clientID: number; occluded: boolean; objectsCount: number; currentIndex: number; normalizedKeyMap: Record; nextObject(step: number): void; } function ObjectSwitcher(props: Props): JSX.Element { const { currentLabel, clientID, objectsCount, currentIndex, nextObject, normalizedKeyMap, } = props; const title = `${currentLabel} ${clientID} [${currentIndex + 1}/${objectsCount}]`; return (
{currentLabel} {` ${clientID} `} {`[${currentIndex + 1}/${objectsCount}]`}
); } export default React.memo(ObjectSwitcher);