"use client"; import { FC } from "react"; import { observer } from "mobx-react"; // hooks import { DoubleCircleIcon } from "@plane/ui"; import { useIssueDetail } from "@/hooks/store"; // components import { IssueActivityBlockComponent, IssueLink } from "./"; // icons type TIssueStateActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined }; export const IssueStateActivity: FC = observer((props) => { const { activityId, showIssue = true, ends } = props; // hooks const { activity: { getActivityById }, } = useIssueDetail(); const activity = getActivityById(activityId); if (!activity) return <>; return ( } activityId={activityId} ends={ends} > <> set the state to {activity.new_value} {showIssue ? ` for ` : ``} {showIssue && }. ); });