Skip to content

The open alternative to Salesforce, designed for AI.

570 B
Raw Blame
import { type FieldsWidgetGroup } from '@/page-layout/widgets/fields/types/FieldsWidgetGroup';
import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';

import { PageLayoutComponentInstanceContext } from './contexts/PageLayoutComponentInstanceContext';

export const fieldsWidgetGroupsPersistedComponentState =
  createAtomComponentState<Record<string, FieldsWidgetGroup[]>>({
    key: 'fieldsWidgetGroupsPersistedComponentState',
    defaultValue: {},
    componentInstanceContext: PageLayoutComponentInstanceContext,
  });