2024-01-23 07:58:58 +00:00
|
|
|
import { FC } from "react";
|
|
|
|
|
|
|
|
// hooks
|
|
|
|
import { useIssueDetail } from "hooks/store";
|
|
|
|
// ui
|
|
|
|
|
|
|
|
type TIssueUser = {
|
|
|
|
activityId: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const IssueUser: FC<TIssueUser> = (props) => {
|
|
|
|
const { activityId } = props;
|
|
|
|
// hooks
|
|
|
|
const {
|
|
|
|
activity: { getActivityById },
|
|
|
|
} = useIssueDetail();
|
|
|
|
|
|
|
|
const activity = getActivityById(activityId);
|
|
|
|
|
|
|
|
if (!activity) return <></>;
|
|
|
|
return (
|
|
|
|
<a
|
|
|
|
href={`/${activity?.workspace_detail?.slug}/profile/${activity?.actor_detail?.id}`}
|
2024-02-08 12:53:13 +00:00
|
|
|
className="hover:underline text-neutral-text-strong font-medium capitalize"
|
2024-01-23 07:58:58 +00:00
|
|
|
>
|
|
|
|
{activity.actor_detail?.display_name}
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
};
|