1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { DetailsResource } from "~/models/details";
7 import { ResourceData } from "~/store/resources-data/resources-data-reducer";
9 export abstract class DetailsData<T extends DetailsResource = DetailsResource> {
10 constructor(protected item: T, protected data?: ResourceData) {}
13 return this.item.name || 'Projects';
16 abstract getIcon(className?: string): React.ReactElement<any>;
17 abstract getDetails(): React.ReactElement<any>;
19 getActivity(): React.ReactElement<any> {