import { FC } from "react"; import { observer } from "mobx-react"; // hooks import { useIssueDetail } from "hooks/store"; // components import { IssueActivityBlockComponent } from "./"; // icons import { DiceIcon } from "@plane/ui"; 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} )} ); });