import { SUPPORT_EMAIL } from '@config' ; function formatEmail ( email , subject , body ) { return `mailto:${ email }?subject=${ encodeURIComponent ( subject ) }&body=${ encodeURIComponent ( body ) }` ; } export function formatEmailMarkdown ( email , subject , body ) { return `[${ email }](${ formatEmail ( email , subject , body ) })` ; } export function formatSupportEmail ( subject , body ? ) { return formatEmail ( SUPPORT_EMAIL , subject , body || '' ) ; } export function formatErrorEmail ( subject , stackTrace ? ) { return formatEmail ( SUPPORT_EMAIL , subject , `Stack Trace: \n ${ stackTrace }` ) ; } export function formatErrorEmailMarkdown ( subject , stackTrace ) { return formatEmailMarkdown ( SUPPORT_EMAIL , subject , `Stack Trace: \n ${ stackTrace }` ) ; }