|
1 | 1 | "use client"; |
2 | 2 |
|
| 3 | +import { getSession } from "next-auth/react"; |
| 4 | +import Link from "next/link"; |
| 5 | +import { useRouter } from "next/navigation"; |
3 | 6 | import { AiOutlineThunderbolt } from "react-icons/ai"; |
4 | 7 | import { CgMoreO } from "react-icons/cg"; |
5 | 8 | import { FaRegBookmark } from "react-icons/fa"; |
6 | 9 | import { FaRegUser } from "react-icons/fa6"; |
7 | 10 | import { GoHome } from "react-icons/go"; |
8 | 11 | import { IoMdSearch } from "react-icons/io"; |
9 | | -import { TbOctagonPlus } from "react-icons/tb"; |
10 | 12 | import { MdOutlineMail } from "react-icons/md"; |
11 | 13 | import { RiGroupLine, RiNotification2Line } from "react-icons/ri"; |
| 14 | +import { TbOctagonPlus } from "react-icons/tb"; |
12 | 15 | import { Button, UserAvatar, X_logo } from ".."; |
13 | 16 | import GrokIcon from "../Grok"; |
14 | 17 | import X_Icon from "../X_Icon"; |
15 | | -import Link from "next/link"; |
16 | | -import { useState } from "react"; |
| 18 | + |
17 | 19 | export const HomeLeft = () => { |
18 | | - const [isOpen, setIsOpen] = useState(false); |
| 20 | + const router = useRouter(); |
| 21 | + const session = getSession(); |
19 | 22 |
|
20 | 23 | const onPostClick = () => { |
21 | 24 | console.log("Click"); |
22 | | - setIsOpen(!isOpen); |
| 25 | + router.push("/post"); |
| 26 | + console.log(session, "This is the session"); |
23 | 27 | }; |
24 | 28 | return ( |
25 | 29 | <div> |
@@ -138,8 +142,12 @@ export const HomeLeft = () => { |
138 | 142 | </div> |
139 | 143 | </div> |
140 | 144 | <div className="mt-28"> |
141 | | - <div> |
| 145 | + <div className="flex gap-2"> |
142 | 146 | <UserAvatar /> |
| 147 | + <div> |
| 148 | + <p className="font-bold">mscode</p> |
| 149 | + <p className="text-slate-600 font-semibold">@mscode07</p> |
| 150 | + </div> |
143 | 151 | </div> |
144 | 152 | </div> |
145 | 153 | </div> |
|
0 commit comments