Files
twenty/packages/twenty-front/src/modules/ui/navigation/states/navigationDrawerExpandedMemorizedState.ts
2024-10-15 14:02:28 +02:00

10 lines
264 B
TypeScript

import { atom } from 'recoil';
import { MOBILE_VIEWPORT } from 'twenty-ui';
const isMobile = window.innerWidth <= MOBILE_VIEWPORT;
export const navigationDrawerExpandedMemorizedState = atom({
key: 'navigationDrawerExpandedMemorized',
default: !isMobile,
});