1 import { c } from 'ttag';
3 import { VIEWS } from '@proton/shared/lib/calendar/constants';
5 const { DAY, WEEK, MONTH, YEAR, AGENDA, CUSTOM, MAIL, DRIVE, SEARCH } = VIEWS;
7 export const getNavigationArrowsText = (view: VIEWS) => {
9 previous: c('Action').t`Previous day`,
10 next: c('Action').t`Next day`,
13 previous: c('Action').t`Previous week`,
14 next: c('Action').t`Next week`,
17 previous: c('Action').t`Previous month`,
18 next: c('Action').t`Next month`,
21 previous: c('Action').t`Previous year`,
22 next: c('Action').t`Next year`,
26 [DAY]: dayText.previous,
27 [WEEK]: weekText.previous,
28 [MONTH]: monthText.previous,
29 [AGENDA]: monthText.previous,
30 [CUSTOM]: monthText.previous,
31 [YEAR]: yearText.previous,
32 [MAIL]: weekText.previous,
33 [DRIVE]: weekText.previous,
34 [SEARCH]: weekText.previous,
39 [WEEK]: weekText.next,
40 [MONTH]: monthText.next,
41 [AGENDA]: monthText.next,
42 [CUSTOM]: monthText.next,
43 [YEAR]: yearText.next,
44 [MAIL]: weekText.next,
45 [DRIVE]: weekText.next,
46 [SEARCH]: weekText.next,
51 previous: previous[view],