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;
10 export const getViewString = (view?: VIEWS) => {
14 return VIEW_URL_PARAMS_VIEWS_CONVERSION[view] || '';