diff --git a/src/app/messaging/page.tsx b/src/app/messaging/page.tsx new file mode 100644 index 0000000..c8706da --- /dev/null +++ b/src/app/messaging/page.tsx @@ -0,0 +1,68 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import ReactLenis from "lenis/react"; +import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; +import { useState } from "react"; + +export default function MessagingPage() { + const [activeChat, setActiveChat] = useState("1"); + + return ( + + + + +
+
+

Conversations

+ {[1, 2, 3].map((id) => ( +
setActiveChat(id.toString())} + className={`p-4 rounded-xl mb-3 cursor-pointer ${activeChat === id.toString() ? "bg-accent/10" : "bg-card"}`}> +
+

User {id}

+ {id === 1 && 2} +
+

Latest message preview...

+
+ ))} +
+
+
+

Chat with User {activeChat}

+
+
Hey, how are you?
+
I'm good, thanks!
+
+ +
+
+
+
+
+ ); +} \ No newline at end of file