1 import { normalize } from '@proton/shared/lib/helpers/string';
3 export const getContactDisplayNameEmail = ({
6 emailDelimiters = ['<', '>'],
10 emailDelimiters?: string[];
12 const displayOnlyEmail = !name || normalize(name) === normalize(email);
13 const nameEmail = displayOnlyEmail ? email : `${name} ${emailDelimiters[0]}${email}${emailDelimiters[1]}`;