Update all non-major dependencies
[ProtonMail-WebClient.git] / applications / calendar / src / app / helpers / views.ts
blobc6b9af4e5a9833af89eb8f4552cdc0d752e8cd2d
1 import type { VIEWS } from '@proton/shared/lib/calendar/constants';
3 import { SUPPORTED_VIEWS_IN_DRAWER } from '../containers/calendar/constants';
4 import { VIEW_URL_PARAMS_VIEWS_CONVERSION } from '../containers/calendar/getUrlHelper';
6 export const getIsCalendarAppInDrawer = (view?: VIEWS) => {
7     return view ? SUPPORTED_VIEWS_IN_DRAWER.includes(view) : false;
8 };
10 export const getViewString = (view?: VIEWS) => {
11     if (!view) {
12         return '';
13     }
14     return VIEW_URL_PARAMS_VIEWS_CONVERSION[view] || '';