diff --git a/components/MyPages/Sidebar/index.tsx b/components/MyPages/Sidebar/index.tsx index 3fab63207..2a10f7307 100644 --- a/components/MyPages/Sidebar/index.tsx +++ b/components/MyPages/Sidebar/index.tsx @@ -1,20 +1,27 @@ +"use client" import { LogOut } from "react-feather" import Link from "next/link" import styles from "./sidebar.module.css" import { SidebarProps } from "@/types/requests/myPages/navigation" +import { usePathname } from "next/navigation" +import { Fragment } from "react" export default function Sidebar({ menuItems }: SidebarProps) { + const currentPageSlug = `/${usePathname() + .split("/") + .filter((v) => v) + .at(-1)}` + return (