MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / InviterAttribution

Function InviterAttribution

apps/cloud/src/web/pages/create-org.tsx:158–177  ·  view source on GitHub ↗
({ invitation }: { invitation: PendingInvitation })

Source from the content-addressed store, hash-verified

156// ---------------------------------------------------------------------------
157
158const InviterAttribution = ({ invitation }: { invitation: PendingInvitation }) => {
159 const inviterLabel = invitation.inviter
160 ? invitation.inviter.name && invitation.inviter.name.length > 0
161 ? `${invitation.inviter.name} (${invitation.inviter.email})`
162 : invitation.inviter.email
163 : null;
164 const time = formatRelativeTime(invitation.createdAt);
165 return (
166 <p className="truncate text-xs text-muted-foreground">
167 {inviterLabel ? (
168 <>
169 Invited by <span className="text-foreground/80">{inviterLabel}</span>
170 {time && <span> · {time}</span>}
171 </>
172 ) : (
173 <>Invited{time ? ` ${time}` : ""}</>
174 )}
175 </p>
176 );
177};
178
179// ---------------------------------------------------------------------------
180

Callers

nothing calls this directly

Calls 1

formatRelativeTimeFunction · 0.70

Tested by

no test coverage detected