86c63eb35b685658c0d54c3f5a18a3505a120977
[arvados.git] / src / views-components / details-panel / file-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 { DetailsData } from "./details-data";
7 import { CollectionFile, CollectionDirectory } from '~/models/collection-file';
8 import { getIcon } from '~/components/file-tree/file-tree-item';
9
10 export class FileDetails extends DetailsData<CollectionFile | CollectionDirectory> {
11
12     getIcon(className?: string) {
13         const Icon = getIcon(this.item.type);
14         return <Icon className={className} />;
15     }
16
17     getDetails() {
18         return <div>File details</div>;
19     }
20 }