cleanup
This commit is contained in:
@@ -2,6 +2,7 @@ import React, { ReactNode } from 'react';
|
||||
import DocumentViewerPanel from '../../preview/DocumentViewerPanel';
|
||||
import createWorkspaceSurfaceConfig from '../workspaceHeader';
|
||||
import DocumentsPanel from './DocumentsPanel';
|
||||
import type { DocumentsPanelHeaderConfig } from './DocumentsPanelHeader';
|
||||
import { SelectionFloatingPanel } from '../SelectionFloatingActions';
|
||||
import { createDocumentsTableHeaderActions } from './DocumentsToolbar';
|
||||
|
||||
@@ -100,6 +101,15 @@ const createDocumentsSurface = ({
|
||||
})()
|
||||
: null;
|
||||
|
||||
const headerConfig: DocumentsPanelHeaderConfig = {
|
||||
title,
|
||||
subtitle,
|
||||
leading: sidebarToggle,
|
||||
actions,
|
||||
breadcrumbs,
|
||||
floatingActions,
|
||||
};
|
||||
|
||||
return createWorkspaceSurfaceConfig({
|
||||
key: isDeskView ? 'workspace' : 'documents',
|
||||
variant: isDeskView ? 'workspace' : 'documents',
|
||||
@@ -113,6 +123,7 @@ const createDocumentsSurface = ({
|
||||
content: (
|
||||
<DocumentsPanel
|
||||
{...tableProps}
|
||||
headerConfig={headerConfig}
|
||||
onInspectDocument={onInspectDocument}
|
||||
/>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user