+
+
+
+
AI Chat
Welcome, {session.user.name}!
-
-
-
- {messages.length === 0 && (
-
- Start a conversation with AI
-
- )}
- {messages.map((message) => (
-
-
- {message.role === "user" ? "You" : "AI"}
+
+ {messages.length === 0 && (
+
+ Start a conversation with AI
-
{renderMessageContent(message as MaybePartsMessage)}
-
- ))}
-
+ )}
+ {messages.map((message) => (
+
+
+ {message.role === "user" ? "You" : "AI"}
+
+
{renderMessageContent(message as MaybePartsMessage)}
+
+ ))}
+
-
+
setInput(e.target.value)}
+ placeholder="Type your message..."
+ className="flex-1 p-2 border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring"
+ />
+
+
+
);
}
diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index 3b24edd..1b2299c 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -1,32 +1,37 @@
-"use client"
+"use client";
-import { UserProfile } from "@/components/auth/user-profile"
-import { useSession } from "@/lib/auth-client"
-import { Button } from "@/components/ui/button"
-import Link from "next/link"
+import { useSession } from "@/lib/auth-client";
+import { UserProfile } from "@/components/auth/user-profile";
+import { Button } from "@/components/ui/button";
+import Link from "next/link";
export default function DashboardPage() {
- const { data: session, isPending } = useSession()
+ const { data: session, isPending } = useSession();
if (isPending) {
- return
Loading...
+ return (
+
+ Loading...
+
+ );
}
if (!session) {
return (
-
-
+
- )
+ );
}
return (
Dashboard
-
-
+
AI Chat
@@ -37,18 +42,22 @@ export default function DashboardPage() {
Go to Chat
-
+
Profile
Manage your account settings and preferences
-
Name: {session.user.name}
-
Email: {session.user.email}
+
+ Name: {session.user.name}
+
+
+ Email: {session.user.email}
+
- )
-}
\ No newline at end of file
+ );
+}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 0f2c6d3..60afe66 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
+import { SiteHeader } from "@/components/site-header";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -27,6 +28,7 @@ export default function RootLayout({
+
{children}