|
2 | 2 | * Export dialog turns as long images. |
3 | 3 | * Uses React rendering to match FlowChat styles. |
4 | 4 | * Uses modern-screenshot (fork of html-to-image with better CSS var / font / CORS handling). |
| 5 | + * |
| 6 | + * NOTE: Temporarily disabled — the export button is hidden. Keep the export |
| 7 | + * infrastructure in place for when the underlying capture/save issues are resolved. |
5 | 8 | */ |
6 | 9 |
|
7 | 10 | import React, { useState, useCallback, useRef } from 'react'; |
8 | 11 | import { createRoot } from 'react-dom/client'; |
9 | | -import { Image, Loader2 } from 'lucide-react'; |
10 | 12 | import { FlowChatStore } from '../../store/FlowChatStore'; |
11 | 13 | import { notificationService } from '@/shared/notification-system'; |
12 | 14 | import { FlowTextBlock } from '../FlowTextBlock'; |
13 | 15 | import { FlowToolCard } from '../FlowToolCard'; |
14 | | -import { Tooltip } from '@/component-library'; |
15 | 16 | import type { DialogTurn, FlowTextItem, FlowToolItem, FlowThinkingItem } from '../../types/flow-chat'; |
16 | 17 | import { i18nService } from '@/infrastructure/i18n'; |
17 | 18 | import { workspaceAPI } from '@/infrastructure/api'; |
@@ -534,17 +535,13 @@ export const ExportImageButton: React.FC<ExportImageButtonProps> = ({ |
534 | 535 | } |
535 | 536 | }, [getDialogTurn]); |
536 | 537 |
|
537 | | - return ( |
538 | | - <Tooltip content={isExporting ? i18nService.t('flow-chat:exportImage.exporting') : i18nService.t('flow-chat:exportImage.exportToImage')} placement="top"> |
539 | | - <button |
540 | | - className={`model-round-item__action-btn model-round-item__export-btn ${className}`} |
541 | | - onClick={handleExport} |
542 | | - disabled={isExporting} |
543 | | - > |
544 | | - {isExporting ? <Loader2 size={14} className="spinning" /> : <Image size={14} />} |
545 | | - </button> |
546 | | - </Tooltip> |
547 | | - ); |
| 538 | + // Currently unused — kept for re-enable. |
| 539 | + void (handleExport as unknown as React.MouseEventHandler); |
| 540 | + void (isExporting as boolean); |
| 541 | + void (isExportingRef as React.MutableRefObject<boolean>); |
| 542 | + void (className as string); |
| 543 | + |
| 544 | + return null; |
548 | 545 | }; |
549 | 546 |
|
550 | 547 | ExportImageButton.displayName = 'ExportImageButton'; |
0 commit comments