Skip to content

The open alternative to Salesforce, designed for AI.

556 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 fieldsWidgetGroupsDraftComponentState = createAtomComponentState<
  Record<string, FieldsWidgetGroup[]>
>({
  key: 'fieldsWidgetGroupsDraftComponentState',
  defaultValue: {},
  componentInstanceContext: PageLayoutComponentInstanceContext,
});