Move Resource interface to models, unify ResourceKind enum
[arvados-workbench2.git] / src / components / details-panel-factory / items / process-item.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from 'react';
6 import IconBase, { IconTypes } from '../../icon/icon';
7 import Attribute from '../../attribute/attribute';
8 import AbstractItem from './abstract-item';
9 import { ProcessResource } from '../../../models/process';
10
11 export default class ProcessItem extends AbstractItem<ProcessResource> {
12
13     getIcon(): IconTypes {
14         return IconTypes.PROCESS;
15     }
16
17     buildDetails(): React.ReactElement<any> {
18         return <div>
19             <Attribute label='Type' value='Data Collection' />
20             <Attribute label='Size' value='---' />
21             <Attribute label="Location">
22                 <IconBase icon={IconTypes.FOLDER} />
23                 Process
24             </Attribute>
25             <Attribute label='Owner' value='me' />
26             <Attribute label='Last modified' value='5:25 PM 5/23/2018' />
27             <Attribute label='Created at' value='1:25 PM 5/23/2018' />
28             <Attribute label='Number of files' value='20' />
29             <Attribute label='Content size' value='54 MB' />
30             <Attribute label='Collection UUID' link='http://www.google.pl' value='nfnz05wp63ibf8w' />
31             <Attribute label='Content address' link='http://www.google.pl' value='nfnz05wp63ibf8w' />
32             <Attribute label='Creator' value='Chrystian' />
33             <Attribute label='Used by' value='---' />
34         </div>;
35     }
36 }