// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import Icon from 'antd/lib/icon'; import Text from 'antd/lib/typography/Text'; import Tooltip from 'antd/lib/tooltip'; import Button from 'antd/lib/button'; 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);