Skip to content

Commit 06bee7e

Browse files
committed
feat: add Review button to ChatCompose component for navigation to review page
1 parent 3a45957 commit 06bee7e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/chat/ChatCompose.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Sandbox } from "../config/Sandbox";
33
import { ProviderModels } from "@/components/config/provider-models";
44
import { ReasoningEffortSelector } from "../config/ReasoningEffortSelector";
55
import type { MediaAttachment } from "@/types/chat";
6+
import { Button } from "../ui/button";
7+
import { useNavigate } from "react-router-dom";
68

79
interface ChatComposeProps {
810
inputValue: string;
@@ -19,6 +21,7 @@ export function ChatCompose({
1921
onStopStreaming,
2022
isBusy,
2123
}: ChatComposeProps) {
24+
const navigate = useNavigate();
2225
return (
2326
<div className="border-t bg-background px-2">
2427
<ChatInput
@@ -29,10 +32,13 @@ export function ChatCompose({
2932
disabled={isBusy}
3033
isLoading={isBusy}
3134
/>
32-
<div className="flex flex-wrap items-center">
33-
<Sandbox />
34-
<ProviderModels />
35-
<ReasoningEffortSelector />
35+
<div className="flex flex-wrap items-center justify-between">
36+
<span>
37+
<Sandbox />
38+
<ProviderModels />
39+
<ReasoningEffortSelector />
40+
</span>
41+
<Button onClick={() => navigate("/review")}>Review</Button>
3642
</div>
3743
</div>
3844
);

0 commit comments

Comments
 (0)