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.
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
// Copyright (C) 2020 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import './styles.scss';
|
|
import React from 'react';
|
|
import { Row, Col } from 'antd/lib/grid';
|
|
import Text from 'antd/lib/typography/Text';
|
|
|
|
import { ModelFiles } from 'reducers/interfaces';
|
|
import CreateModelContent from './create-model-content';
|
|
|
|
interface Props {
|
|
createModel(name: string, files: ModelFiles, global: boolean): void;
|
|
isAdmin: boolean;
|
|
modelCreatingStatus: string;
|
|
}
|
|
|
|
export default function CreateModelPageComponent(props: Props): JSX.Element {
|
|
const {
|
|
isAdmin,
|
|
modelCreatingStatus,
|
|
createModel,
|
|
} = props;
|
|
|
|
return (
|
|
<Row type='flex' justify='center' align='top' className='cvat-create-model-form-wrapper'>
|
|
<Col md={20} lg={16} xl={14} xxl={9}>
|
|
<Text className='cvat-title'>Upload a new model</Text>
|
|
<CreateModelContent
|
|
isAdmin={isAdmin}
|
|
modelCreatingStatus={modelCreatingStatus}
|
|
createModel={createModel}
|
|
/>
|
|
</Col>
|
|
</Row>
|
|
);
|
|
}
|