import { FC } from "react"; import { useRouter } from "next/router"; // ui import { Breadcrumbs, CustomMenu } from "@plane/ui"; import { Settings } from "lucide-react"; // hooks import { observer } from "mobx-react-lite"; // components import { SidebarHamburgerToggle } from "components/core/sidebar/sidebar-menu-hamburger-toggle"; import { WORKSPACE_SETTINGS_LINKS } from "constants/workspace"; import { BreadcrumbLink } from "components/common"; export interface IWorkspaceSettingHeader { title: string; } export const WorkspaceSettingHeader: FC = observer((props) => { const { title } = props; const router = useRouter(); const { workspaceSlug } = router.query; return (
} /> } />
} />
{title} } placement="bottom-start" closeOnSelect > {WORKSPACE_SETTINGS_LINKS.map((item) => ( router.push(`/${workspaceSlug}${item.href}`)}> {item.label} ))}
); });