selection

This commit is contained in:
2025-11-03 02:31:46 +01:00
parent 1c261bf0a2
commit 152f824e2e
15 changed files with 1331 additions and 164 deletions
+1 -13
View File
@@ -1,5 +1,5 @@
import React, { useEffect, useMemo, useState } from 'react';
import { DownloadIcon, AnalyzeIcon, CloseIcon } from '../ui/icons';
import { DownloadIcon, CloseIcon } from '../ui/icons';
import DocumentSummarySection, {
buildCorrespondentOptions,
sortCorrespondents,
@@ -350,7 +350,6 @@ export default DocumentViewerPanel;
export const createDocumentViewerHeaderActions = ({
document,
actionState,
onRegenerate,
}) => {
if (!document || !actionState) {
return null;
@@ -372,15 +371,6 @@ export const createDocumentViewerHeaderActions = ({
<DownloadIcon />
</a>
) : null}
<button
type="button"
className="icon-button"
onClick={() => onRegenerate(document.id)}
aria-label="Re-run analysis"
title="Re-run analysis"
>
<AnalyzeIcon />
</button>
</>
);
};
@@ -394,7 +384,6 @@ export const createDocumentViewerSurface = ({
getDocumentAsset,
resolveApiPath,
notifyApiError,
onRegenerate,
onClose,
renderSidebarToggle,
tagLookupById,
@@ -469,7 +458,6 @@ export const createDocumentViewerSurface = ({
actions: createDocumentViewerHeaderActions({
document,
actionState,
onRegenerate,
}),
breadcrumbs,
};