Update thread and history components

This commit is contained in:
sanjeed5
2025-03-12 01:27:22 +05:30
parent 6864025fab
commit 77ff7016c3
2 changed files with 17 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ import {
ArrowDown,
LoaderCircle,
PanelRightOpen,
PanelRightClose,
SquarePen,
} from "lucide-react";
import { BooleanParam, StringParam, useQueryParam } from "use-query-params";
@@ -217,7 +218,11 @@ export function Thread() {
variant="ghost"
onClick={() => setChatHistoryOpen((p) => !p)}
>
<PanelRightOpen className="size-5" />
{chatHistoryOpen ? (
<PanelRightOpen className="size-5" />
) : (
<PanelRightClose className="size-5" />
)}
</Button>
)}
</div>
@@ -232,7 +237,11 @@ export function Thread() {
variant="ghost"
onClick={() => setChatHistoryOpen((p) => !p)}
>
<PanelRightOpen className="size-5" />
{chatHistoryOpen ? (
<PanelRightOpen className="size-5" />
) : (
<PanelRightClose className="size-5" />
)}
</Button>
)}
</div>