import { FC } from "react"; import { observer } from "mobx-react-lite"; // hooks import { useIssueDetail } from "hooks/store"; // components import { IssueActivityList } from "./activity-list"; type TIssueActivityRoot = { issueId: string; }; export const IssueActivityRoot: FC = observer((props) => { const { issueId } = props; // hooks const { activity: { getActivitiesByIssueId }, } = useIssueDetail(); const activityIds = getActivitiesByIssueId(issueId); if (!activityIds) return <>; return (
{activityIds.map((activityId, index) => ( ))}
); });