Skip to content

The open alternative to Salesforce, designed for AI.

463 B
Raw Blame
import { NAVIGATION_DRAWER_CONSTRAINTS } from '@/ui/navigation/navigation-drawer/constants/NavigationDrawerConstraints';
import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';

export const NAVIGATION_DRAWER_WIDTH_VAR = '--navigation-drawer-width';

export const navigationDrawerWidthState = createAtomState<number>({
  key: 'navigationDrawerWidth',
  defaultValue: NAVIGATION_DRAWER_CONSTRAINTS.default,
  useLocalStorage: true,
});