import { FC } from "react"; // helpers import { renderEmoji } from "helpers/emoji.helper"; interface IIssueReactionPreview { issueReactions: any; user: any; handleReaction: (reaction: string) => void; } export const IssueReactionPreview: FC = (props) => { const { issueReactions, user, handleReaction } = props; const isUserReacted = (reactions: any) => { const userReaction = reactions?.find((reaction: any) => reaction.actor === user?.id); if (userReaction) return true; return false; }; return (
{Object.keys(issueReactions || {}).map( (reaction) => issueReactions[reaction]?.length > 0 && ( ) )}
); };