Merge branch '13986-projects-list-and-default-routing'
[arvados-workbench2.git] / src / views-components / details-panel / empty-details.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 { DefaultIcon, ProjectsIcon } from '../../components/icon/icon';
7 import { EmptyResource } from '../../models/empty';
8 import { DetailsData } from "./details-data";
9 import { DefaultView } from '../../components/default-view/default-view';
10
11 export class EmptyDetails extends DetailsData<EmptyResource> {
12     getIcon(className?: string) {
13         return <ProjectsIcon className={className}/>;
14     }
15
16     getDetails() {
17         return <DefaultView icon={DefaultIcon} messages={['Select a file or folder to view its details.']} />;
18     }
19 }