X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f0d519637c997df11d5b1a1b32b3d9e4a2872325..7c6d47d766b7b37463281387d8badbfe18522d09:/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 5c061883f9..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>;
 }
