// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; import { DetailsResource } from "~/models/details"; export abstract class DetailsData { constructor(protected item: T) { } getTitle(): string { return this.item.name || 'Projects'; } getTabLabels(): string[] { return ['Details']; } abstract getIcon(className?: string): React.ReactElement; abstract getDetails(tabNr?: number): React.ReactElement; }