import { FC } from "react"; import { observer } from "mobx-react-lite"; // hooks import { useIssueDetail } from "hooks/store"; type TIssueActivityListItem = { workspaceSlug: string; projectId: string; issueId: string; activityId: string; disabled: boolean; }; export const IssueActivityCard: FC = (props) => { const {} = props; return (
Icon
Content
); }; export const IssueActivityListItem: FC = observer((props) => { const { workspaceSlug, projectId, issueId, activityId, disabled } = props; // hooks const { activity: { getActivityById }, } = useIssueDetail(); const activityFiled = getActivityById(activityId)?.field; console.log("activityFiled", activityFiled); switch (activityFiled) { case activityFiled: return
{activityFiled}
; default: return <>; } });