export const renderCustomEmailTemplate = >( template: string, variables: T, ): string => { return template.replace(/\{(\S+)\}/g, (_, key) => { if (key in variables) { return variables[key]; } return key; }); };