import { localized, ComposerExtension } from 'mailspring-exports'; export default class TemplatesComposerExtension extends ComposerExtension { static warningsForSending({ draft }) { const warnings = []; if (draft.body.search(/]*empty[^>]*>/i) > 0) { warnings.push(localized('The message contains an empty template area.')); } return warnings; } }