({ email, name }: { email: string, name?: string })
| 119 | }; |
| 120 | |
| 121 | const 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 | |
| 132 | InviteUserEmail.PreviewProps = { |
| 133 | baseUrl: 'http://localhost:3000', |
nothing calls this directly
no outgoing calls
no test coverage detected