X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/df0520719b15e7e230fb72f3e53ff36a34f4ba87..d4d0208892ea0f0f4bf79691770b14aca89db92b:/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 68aa5787..bcca325c 100644
--- a/src/views-components/details-panel/details-data.tsx
+++ b/src/views-components/details-panel/details-data.tsx
@@ -2,8 +2,13 @@
 //
 // 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) { }
@@ -17,5 +22,5 @@ export abstract class DetailsData<T extends DetailsResource = DetailsResource> {
     }
 
     abstract getIcon(className?: string): React.ReactElement<any>;
-    abstract getDetails(tabNr?: number): React.ReactElement<any>;
+    abstract getDetails({tabNr, showPreview}: GetDetailsParams): React.ReactElement<any>;
 }
