import { FC } from "react"; import Link from "next/link"; // hooks import { useIssueDetail } from "@/hooks/store"; type TIssueUser = { activityId: string; customUserName?: string; }; export const IssueUser: FC = (props) => { const { activityId, customUserName } = props; // hooks const { activity: { getActivityById }, } = useIssueDetail(); const activity = getActivityById(activityId); if (!activity) return <>; return ( <> {customUserName ? ( {customUserName} ) : ( {activity.actor_detail?.display_name} )} ); };