feat(24-03): add JSON export button to ChatPanel header (HIST-04 gap closure)

This commit is contained in:
Nexus Dev 2026-04-01 22:47:19 +00:00
parent 0a5af1f09d
commit aa1bebf81b

View file

@ -1,5 +1,5 @@
import { useState, useMemo, useEffect, useCallback } from "react";
import { Bookmark, Download, X } from "lucide-react";
import { Bookmark, Download, FileJson, X } from "lucide-react";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { useChatPanel } from "../context/ChatPanelContext";
import { useCompany } from "../context/CompanyContext";
@ -264,6 +264,16 @@ export function ChatPanel() {
>
<Download className="h-4 w-4" />
</Button>
<Button
variant="ghost"
size="icon"
className="h-6 w-6"
onClick={() => handleExport("json")}
aria-label="Export as JSON"
title="Export as JSON"
>
<FileJson className="h-4 w-4" />
</Button>
</>
)}
{selectedCompanyId && (