import { FC } from "react"; import { observer } from "mobx-react"; // hooks import { useIssueDetail } from "hooks/store"; // components import { IssueActivityBlockComponent } from "./"; // icons import { ContrastIcon } from "@plane/ui"; type TIssueCycleActivity = { activityId: string; ends: "top" | "bottom" | undefined }; export const IssueCycleActivity: FC = observer((props) => { const { activityId, ends } = props; // hooks const { activity: { getActivityById }, } = useIssueDetail(); const activity = getActivityById(activityId); if (!activity) return <>; return ( } activityId={activityId} ends={ends} > <> {activity.verb === "created" ? ( <> added this issue to the cycle {activity.new_value} ) : activity.verb === "updated" ? ( <> set the cycle to {activity.new_value} ) : ( <> removed the issue from the cycle {activity.new_value} )} ); });