import { FC } from "react"; // hooks import { Tooltip } from "@plane/ui"; import { useIssueDetail } from "hooks/store"; import { usePlatformOS } from "hooks/use-platform-os"; // ui type TIssueLink = { activityId: string; }; export const IssueLink: FC = (props) => { const { activityId } = props; // hooks const { activity: { getActivityById }, } = useIssueDetail(); const { isMobile } = usePlatformOS(); const activity = getActivityById(activityId); if (!activity) return <>; return ( {activity.issue_detail ? `${activity.project_detail.identifier}-${activity.issue_detail.sequence_id}` : "Issue"}{" "} {activity.issue_detail?.name} ); };