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";
8 export abstract class DetailsData<T extends DetailsResource = DetailsResource> {
9 constructor(protected item: T) {}
12 return this.item.name;
15 abstract getIcon(className?: string): React.ReactElement<any>;
16 abstract getDetails(): React.ReactElement<any>;
18 getActivity(): React.ReactElement<any> {