import { FC } from "react"; import { observer } from "mobx-react-lite"; import { useRouter } from "next/router"; // ui import { Settings } from "lucide-react"; import { Breadcrumbs, CustomMenu } from "@plane/ui"; // hooks // components import { BreadcrumbLink } from "@/components/common"; import { WORKSPACE_SETTINGS_LINKS } from "@/constants/workspace"; 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} ))}
); });