import { sanitize } from '../../utils/sanitize'; import { isClickedButton } from '../../utils/typeGuards'; import { EmailActions } from '../actions/types'; import { CLASSES } from '../constants'; import { Entry } from '../state/types'; import { EmailHandlers } from './types'; export const EMAIL_CLASSES = { removeButton: 'Email-remove', root: 'Email', text: 'Email-text', }; const { removeButton, root, text } = EMAIL_CLASSES; /** * Email Component Template * @param value * @param id */ export const emailTemplate = (value: Entry, id: string): string => `