// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
import React from 'react';
import Icon from 'antd/lib/icon';
import Button from 'antd/lib/button';
import ConstructorViewerItem from './constructor-viewer-item';
import { Label } from './common';
interface ConstructorViewerProps {
labels: Label[];
onUpdate: (label: Label) => void;
onDelete: (label: Label) => void;
onCreate: () => void;
}
export default function ConstructorViewer(props: ConstructorViewerProps): JSX.Element {
const { onCreate } = props;
const list = [
];
for (const label of props.labels) {
list.push(