"use client"; import { FC } from "react"; import { observer } from "mobx-react"; // hooks import { DiceIcon } from "@plane/ui"; import { useIssueDetail } from "@/hooks/store"; // components import { IssueActivityBlockComponent } from "./"; // icons type TIssueModuleActivity = { activityId: string; ends: "top" | "bottom" | undefined }; export const IssueModuleActivity: 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 module {activity.new_value} ) : activity.verb === "updated" ? ( <> set the module to {activity.new_value} ) : ( <> removed the issue from the module {activity.old_value} )} ); });