MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / InvitedByText

Function InvitedByText

packages/web/src/emails/inviteUserEmail.tsx:121–130  ·  view source on GitHub ↗
({ email, name }: { email: string, name?: string })

Source from the content-addressed store, hash-verified

119};
120
121const InvitedByText = ({ email, name }: { email: string, name?: string }) => {
122 const emailElement = <Link href={`mailto:${email}`} className="text-blue-600 no-underline">{email}</Link>;
123
124 if (name) {
125 const firstName = name.split(' ')[0];
126 return <span><strong>{firstName}</strong> ({emailElement})</span>;
127 }
128
129 return emailElement;
130}
131
132InviteUserEmail.PreviewProps = {
133 baseUrl: 'http://localhost:3000',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected