X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bccb9ca5151f041d8c8b73098a3e1874023e3efa..a39cc426fdcde42210966da888eb11634e3a321a:/src/views-components/details-panel/details-data.tsx

diff --git a/src/views-components/details-panel/details-data.tsx b/src/views-components/details-panel/details-data.tsx
index d20269cd77..bcca325c01 100644
--- a/src/views-components/details-panel/details-data.tsx
+++ b/src/views-components/details-panel/details-data.tsx
@@ -2,20 +2,25 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
-import { DetailsResource } from "../../models/details";
+import React from 'react';
+import { DetailsResource } from "models/details";
+
+interface GetDetailsParams {
+  tabNr?: number
+  showPreview?: boolean
+}
 
 export abstract class DetailsData<T extends DetailsResource = DetailsResource> {
-    constructor(protected item: T) {}
+    constructor(protected item: T) { }
 
     getTitle(): string {
-        return this.item.name;
+        return this.item.name || 'Projects';
     }
 
-    abstract getIcon(className?: string): React.ReactElement<any>;
-    abstract getDetails(): React.ReactElement<any>;
-
-    getActivity(): React.ReactElement<any> {
-        return <div/>;
+    getTabLabels(): string[] {
+        return ['Details'];
     }
+
+    abstract getIcon(className?: string): React.ReactElement<any>;
+    abstract getDetails({tabNr, showPreview}: GetDetailsParams): React.ReactElement<any>;
 }
