import { FC } from "react"; import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; import { Plus } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // ui import { Breadcrumbs, Button, ContrastIcon } from "@plane/ui"; // helpers import { renderEmoji } from "helpers/emoji.helper"; import { EUserWorkspaceRoles } from "constants/workspace"; export const CyclesHeader: FC = observer(() => { // router const router = useRouter(); const { workspaceSlug } = router.query; // store const { project: projectStore, user: { currentProjectRole }, commandPalette: commandPaletteStore, trackEvent: { setTrackElement }, } = useMobxStore(); const { currentProjectDetails } = projectStore; const canUserCreateCycle = currentProjectRole && [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER].includes(currentProjectRole); return (