import config from "config"; import MailTemplate from "./mail/MailTemplate.js"; export const MAGIC_LINK_MAIL = new MailTemplate( 'magic_link', data => data.type === 'register' ? 'Registration' : 'Login magic link', ); export const ACCOUNT_REVIEW_NOTICE_MAIL_TEMPLATE: MailTemplate = new MailTemplate( 'account_review_notice', data => `Your account was ${data.approved ? 'approved' : 'rejected'}.`, ); export const PENDING_ACCOUNT_REVIEW_MAIL_TEMPLATE: MailTemplate = new MailTemplate( 'pending_account_review', () => `A new account is pending review on ${config.get('app.name')}`, ); export const ADD_EMAIL_MAIL_TEMPLATE: MailTemplate = new MailTemplate( 'add_email', (data) => `Add ${data.email} address to your ${config.get('app.name')} account.`, ); export const REMOVE_PASSWORD_MAIL_TEMPLATE: MailTemplate = new MailTemplate( 'remove_password', () => `Remove password from your ${config.get('app.name')} account.`, );