Function
generateReportEmail
(
reporter: user,
abuser: user,
reportDesc: string
)
Source from the content-addressed store, hash-verified
| 8 | * @returns - The generated email template. |
| 9 | */ |
| 10 | export const generateReportEmail = ( |
| 11 | reporter: user, |
| 12 | abuser: user, |
| 13 | reportDesc: string |
| 14 | ) => { |
| 15 | return ` |
| 16 | Hello Team, |
| 17 | |
| 18 | This is to report the profile of ${abuser.username}. ID: ${abuser.id}. |
| 19 | |
| 20 | Report Details: |
| 21 | |
| 22 | ${reportDesc} |
| 23 | |
| 24 | |
| 25 | Reported by: |
| 26 | ID: ${reporter.id} |
| 27 | Username: ${reporter.username} |
| 28 | Name:${reporter.name ? ' ' + reporter.name : ''} |
| 29 | Email: ${reporter.email} |
| 30 | |
| 31 | Thanks and regards, |
| 32 | ${reporter.name ?? reporter.username}`; |
| 33 | }; |
Tested by
no test coverage detected