diff --git a/app/components/NavigationSidebar.tsx b/app/components/NavigationSidebar.tsx
index 9a6870b..0aece79 100644
--- a/app/components/NavigationSidebar.tsx
+++ b/app/components/NavigationSidebar.tsx
@@ -2,14 +2,6 @@ import React from "react";
import PixelStudioIcon from "components/PixelStudioIcon";
import { Link } from "@remix-run/react";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
import {
Search,
Layers,
@@ -19,7 +11,44 @@ import {
LogOut,
CreditCard,
} from "lucide-react";
-// import { useLoggedInUser } from "~/hooks";
+import {
+ SignedIn,
+ SignedOut,
+ SignInButton,
+ SignUpButton,
+ UserButton,
+ useUser,
+} from "@clerk/remix";
+
+const NAV_LINKS = [
+ {
+ title: "Explore",
+ icon: ,
+ href: "/explore",
+ },
+ {
+ title: "Collections",
+ icon: ,
+ href: "/collections",
+ },
+ {
+ title: "Create",
+ icon: ,
+ href: "/create",
+ },
+ {
+ title: "Profile",
+ icon: ,
+ // href: `/profile/${userData?.username || ""}`,
+ href: `/profile/`,
+ },
+ // ! TODO: Hide for now, get barebones out first
+ // {
+ // title: "Manage",
+ // icon: ,
+ // href: "/manage",
+ // },
+];
const NavButton = ({
title,
@@ -37,58 +66,22 @@ const NavButton = ({
{...props}
>
{icon}
- {/* */}
{title}
);
const NavigationSidebar = () => {
+ const { user } = useUser();
+ console.log(user);
+
const [credits, setCredits] = React.useState(31);
// const userData = React.useContext(UserContext);
// const userData = useLoggedInUser();
// const isLoggedIn = Boolean(userData?.id);
- const userData = {
- name: "John Doe",
- username: "johndoe",
- };
- const NAV_LINKS = [
- {
- title: "Explore",
- icon: ,
- href: "/explore",
- },
- {
- title: "Collections",
- icon: ,
- href: "/collections",
- },
- {
- title: "Create",
- icon: ,
- href: "/create",
- },
- {
- title: "Profile",
- icon: ,
- // href: `/profile/${userData?.username || ""}`,
- href: `/profile/`,
- },
- // ! TODO: Hide for now, get barebones out first
- // {
- // title: "Manage",
- // icon: ,
- // href: "/manage",
- // },
- ];
-
- // const navLinksToRender = isLoggedIn ? NAV_LINKS : [];
- const navLinksToRender = NAV_LINKS;
return (
<>
- {/*
>