import { FC } from "react"; import { observer } from "mobx-react"; import { Triangle } from "lucide-react"; // hooks import { useEstimate, useIssueDetail } from "hooks/store"; // components import { IssueActivityBlockComponent, IssueLink } from "./"; type TIssueEstimateActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined }; export const IssueEstimateActivity: FC = observer((props) => { const { activityId, showIssue = true, ends } = props; // hooks const { activity: { getActivityById }, } = useIssueDetail(); const { areEstimatesEnabledForCurrentProject, getEstimatePointValue } = useEstimate(); const activity = getActivityById(activityId); if (!activity) return <>; const estimateValue = getEstimatePointValue(Number(activity.new_value), null); const currentPoint = Number(activity.new_value) + 1; return ( ); });