bipinkrish commited on
Commit ·
26f3666
1
Parent(s): aecb5c5
add github redirect
Browse files- src/webzero/chat-page.tsx +17 -1
src/webzero/chat-page.tsx
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
| 12 |
Minimize2,
|
| 13 |
FileCode2,
|
| 14 |
X,
|
|
|
|
| 15 |
} from "lucide-react";
|
| 16 |
import { Button } from "@/components/ui/button";
|
| 17 |
import { Textarea } from "@/components/ui/textarea";
|
|
@@ -243,6 +244,15 @@ export function ChatPage() {
|
|
| 243 |
<div className="flex items-center">
|
| 244 |
<SidebarTrigger />
|
| 245 |
<ThemeToggle />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
</div>
|
| 247 |
<h1 className="text-2xl font-bold ml-4">WebZero</h1>
|
| 248 |
</header>
|
|
@@ -298,7 +308,13 @@ export function ChatPage() {
|
|
| 298 |
<AvatarFallback>"AI"</AvatarFallback>
|
| 299 |
</Avatar>
|
| 300 |
)}
|
| 301 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
{msg.from === "user" ? (
|
| 303 |
<p>{msg.content}</p>
|
| 304 |
) : (
|
|
|
|
| 12 |
Minimize2,
|
| 13 |
FileCode2,
|
| 14 |
X,
|
| 15 |
+
Github,
|
| 16 |
} from "lucide-react";
|
| 17 |
import { Button } from "@/components/ui/button";
|
| 18 |
import { Textarea } from "@/components/ui/textarea";
|
|
|
|
| 244 |
<div className="flex items-center">
|
| 245 |
<SidebarTrigger />
|
| 246 |
<ThemeToggle />
|
| 247 |
+
<Button
|
| 248 |
+
variant="ghost"
|
| 249 |
+
size="sm"
|
| 250 |
+
onClick={() =>
|
| 251 |
+
window.open("https://github.com/webzero-org", "_blank")
|
| 252 |
+
}
|
| 253 |
+
>
|
| 254 |
+
<Github />
|
| 255 |
+
</Button>
|
| 256 |
</div>
|
| 257 |
<h1 className="text-2xl font-bold ml-4">WebZero</h1>
|
| 258 |
</header>
|
|
|
|
| 308 |
<AvatarFallback>"AI"</AvatarFallback>
|
| 309 |
</Avatar>
|
| 310 |
)}
|
| 311 |
+
<div
|
| 312 |
+
className={`p-3 rounded-lg bg-muted ${
|
| 313 |
+
selectedAIMessage?.id == msg.id
|
| 314 |
+
? "selected-card"
|
| 315 |
+
: ""
|
| 316 |
+
}`}
|
| 317 |
+
>
|
| 318 |
{msg.from === "user" ? (
|
| 319 |
<p>{msg.content}</p>
|
| 320 |
) : (
|