// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import { Row, Col } from 'antd/lib/grid'; import Icon from 'antd/lib/icon'; import Button from 'antd/lib/button'; import Text from 'antd/lib/typography/Text'; interface Props { labelName: string; labelColor: string; visible: boolean; statesHidden: boolean; statesLocked: boolean; hideStates(): void; showStates(): void; lockStates(): void; unlockStates(): void; } function LabelItemComponent(props: Props): JSX.Element { const { labelName, labelColor, visible, statesHidden, statesLocked, hideStates, showStates, lockStates, unlockStates, } = props; return (