The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { UI_SCALE_MULTIPLIERS } from '@/ui/theme/constants/UiScaleMultipliers';
import { createAtomState } from '@/ui/utilities/state/jotai/utils/createAtomState';
import { type UiScale } from '@/ui/theme/types/UiScale';
import { doNotTranslate } from 'twenty-shared/i18n';
export const persistedUiScaleStepState = createAtomState<UiScale>({
key: 'persistedUiScaleStepState',
defaultValue: doNotTranslate('Default'),
useLocalStorage: true,
validateInitFn: (step) => Object.hasOwn(UI_SCALE_MULTIPLIERS, step),
});