1 import { c } from 'ttag';
3 import { naiveGetIsDecryptionError } from '@proton/shared/lib/calendar/helper';
5 export const getEventErrorMessage = (error: Error) => {
9 const errorMessage = error.message || '';
10 return naiveGetIsDecryptionError(error)
11 ? c('Error').t`Decryption error: Decryption of this event's content failed.`
12 : c('Error').t`Error: ${errorMessage}`;
15 export const getEventLoadingMessage = () => c('Info').t`Loading event`;