// 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 { currentAttribute: string; currentIndex: number; attributesCount: number; normalizedKeyMap: Record; nextAttribute(step: number): void; } function AttributeSwitcher(props: Props): JSX.Element { const { currentAttribute, currentIndex, attributesCount, nextAttribute, normalizedKeyMap, } = props; const title = `${currentAttribute} [${currentIndex + 1}/${attributesCount}]`; return (
{currentAttribute} {` [${currentIndex + 1}/${attributesCount}]`}
); } export default React.memo(AttributeSwitcher);