You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
581 B
TypeScript

// Copyright (C) 2020-2022 Intel Corporation
//
// SPDX-License-Identifier: MIT
import React from 'react';
import LabelForm from './label-form';
import { Label } from './common';
interface Props {
label: Label;
onUpdate: (label: Label) => void;
onCancel: () => void;
}
export default function ConstructorUpdater(props: Props): JSX.Element {
const { label, onUpdate, onCancel } = props;
return (
<div className='cvat-label-constructor-updater'>
<LabelForm label={label} onSubmit={onUpdate} onCancel={onCancel} />
</div>
);
}