"use client"; import React from "react"; import { observer } from "mobx-react"; import Link from "next/link"; import { useParams, usePathname } from "next/navigation"; // constants import { EUserWorkspaceRoles, WORKSPACE_SETTINGS_LINKS } from "@/constants/workspace"; // hooks import { useUser } from "@/hooks/store"; export const WorkspaceSettingsSidebar = observer(() => { // router const { workspaceSlug } = useParams(); const pathname = usePathname(); // mobx store const { membership: { currentWorkspaceRole }, } = useUser(); const workspaceMemberInfo = currentWorkspaceRole || EUserWorkspaceRoles.GUEST; return (