MCPcopy Create free account
hub / github.com/dailydotdev/apps / ReplyAuthor

Function ReplyAuthor

packages/shared/src/components/feedback/FeedbackThread.tsx:63–96  ·  view source on GitHub ↗
({ reply }: { reply: FeedbackReply })

Source from the content-addressed store, hash-verified

61};
62
63const 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
98const DetailRow = ({
99 label,

Callers

nothing calls this directly

Calls 1

formatFunction · 0.85

Tested by

no test coverage detected