| 61 | }; |
| 62 | |
| 63 | const ReplyAuthor = ({ reply }: { reply: FeedbackReply }): ReactElement => { |
| 64 | const name = reply.authorName || (reply.isTeam ? 'daily.dev team' : 'You'); |
| 65 | |
| 66 | return ( |
| 67 | <div className="flex items-center gap-2"> |
| 68 | {reply.author && ( |
| 69 | <ProfilePicture |
| 70 | user={{ |
| 71 | ...reply.author, |
| 72 | image: reply.author.image ?? '', |
| 73 | name: reply.author.name ?? undefined, |
| 74 | username: reply.author.username ?? undefined, |
| 75 | }} |
| 76 | size={ProfileImageSize.Small} |
| 77 | /> |
| 78 | )} |
| 79 | <Typography type={TypographyType.Footnote} bold> |
| 80 | {name} |
| 81 | </Typography> |
| 82 | {reply.isTeam && ( |
| 83 | <span className={`${badgeClassName} text-brand-default`}> |
| 84 | daily.dev team |
| 85 | </span> |
| 86 | )} |
| 87 | <Typography |
| 88 | type={TypographyType.Footnote} |
| 89 | color={TypographyColor.Tertiary} |
| 90 | className="ml-auto" |
| 91 | > |
| 92 | {format(new Date(reply.createdAt), 'dd MMM yyyy, HH:mm')} |
| 93 | </Typography> |
| 94 | </div> |
| 95 | ); |
| 96 | }; |
| 97 | |
| 98 | const DetailRow = ({ |
| 99 | label, |