Creation dialog with redux-form validation
[arvados-workbench2.git] / src / components / details-panel-factory / items / empty-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 { IconTypes } from '../../icon/icon';
7 import AbstractItem from './abstract-item';
8 import EmptyState from '../../empty-state/empty-state';
9 import { EmptyResource } from '../../../models/empty';
10
11 export default class EmptyItem extends AbstractItem<EmptyResource> {
12     
13     getIcon(): IconTypes {
14         return IconTypes.FOLDER;
15     }
16
17     buildDetails(): React.ReactElement<any> {
18         return <EmptyState icon={IconTypes.ANNOUNCEMENT}
19             message='Select a file or folder to view its details.' />;
20     }
21 }