1 import { c } from 'ttag';
3 import { ICAL_ATTENDEE_STATUS } from '@proton/shared/lib/calendar/constants';
5 const { ACCEPTED, DECLINED, TENTATIVE, DELEGATED, NEEDS_ACTION } = ICAL_ATTENDEE_STATUS;
7 const getAttendanceTooltip = ({
12 partstat: ICAL_ATTENDEE_STATUS;
18 ? c('Calendar invite info').t`You accepted the invitation`
19 : c('Calendar invite info').t`${name} accepted the invitation`,
21 ? c('Calendar invite info').t`You declined the invitation`
22 : c('Calendar invite info').t`${name} declined the invitation`,
24 ? c('Calendar invite info').t`You tentatively accepted the invitation`
25 : c('Calendar invite info').t`${name} tentatively accepted the invitation`,
28 ? c('Calendar invite info').t`You haven't answered the invitation yet`
29 : c('Calendar invite info').t`${name} hasn't answered the invitation yet`,
32 return statusMap[partstat];
35 export default getAttendanceTooltip;