feat(24-03): add JSON export button to ChatPanel header (HIST-04 gap closure)
This commit is contained in:
parent
0a5af1f09d
commit
aa1bebf81b
1 changed files with 11 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { useState, useMemo, useEffect, useCallback } from "react";
|
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 { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||||
import { useChatPanel } from "../context/ChatPanelContext";
|
import { useChatPanel } from "../context/ChatPanelContext";
|
||||||
import { useCompany } from "../context/CompanyContext";
|
import { useCompany } from "../context/CompanyContext";
|
||||||
|
|
@ -264,6 +264,16 @@ export function ChatPanel() {
|
||||||
>
|
>
|
||||||
<Download className="h-4 w-4" />
|
<Download className="h-4 w-4" />
|
||||||
</Button>
|
</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 && (
|
{selectedCompanyId && (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue