/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { observer } from "mobx-react"; // plane ui import { CycleIcon } from "@plane/propel/icons"; import { Tooltip } from "@plane/propel/tooltip"; // plane utils import { cn } from "@plane/utils"; //hooks import { useCycle } from "@/hooks/store/use-cycle"; type Props = { cycleId: string | undefined; shouldShowBorder?: boolean; }; export const IssueBlockCycle = observer(function IssueBlockCycle({ cycleId, shouldShowBorder = true }: Props) { const { getCycleById } = useCycle(); const cycle = getCycleById(cycleId); return (
{cycle?.name ?? "No Cycle"}
); });