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.
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
|
|
import {
|
|
Row,
|
|
Col,
|
|
Button,
|
|
Dropdown,
|
|
Icon,
|
|
} from 'antd';
|
|
|
|
import Text from 'antd/lib/typography/Text';
|
|
|
|
import ActionsMenuContainer from 'containers/actions-menu/actions-menu';
|
|
import { MenuIcon } from 'icons';
|
|
|
|
interface DetailsComponentProps {
|
|
taskInstance: any;
|
|
}
|
|
|
|
export default function DetailsComponent(props: DetailsComponentProps): JSX.Element {
|
|
const { taskInstance } = props;
|
|
const { id } = taskInstance;
|
|
|
|
return (
|
|
<Row className='cvat-task-top-bar' type='flex' justify='space-between' align='middle'>
|
|
<Col>
|
|
<Text className='cvat-title'>{`Task details #${id}`}</Text>
|
|
</Col>
|
|
<Col>
|
|
<Dropdown overlay={
|
|
(
|
|
<ActionsMenuContainer
|
|
taskInstance={taskInstance}
|
|
/>
|
|
)}
|
|
>
|
|
<Button size='large'>
|
|
<Text className='cvat-text-color'>Actions</Text>
|
|
<Icon className='cvat-menu-icon' component={MenuIcon} />
|
|
</Button>
|
|
</Dropdown>
|
|
</Col>
|
|
</Row>
|
|
);
|
|
}
|