* Proof of concept ComponentState * Migrate to createState and createFamilyState * Refactor * Fix * Fix tests * Fix lint * Fix tests * Re-enable coverage
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import { createComponentState } from '@/ui/utilities/state/component-state/utils/createComponentState';
|
|
|
|
import { DialogOptions } from '../types/DialogOptions';
|
|
|
|
type DialogState = {
|
|
maxQueue: number;
|
|
queue: DialogOptions[];
|
|
};
|
|
|
|
export const dialogInternalScopedState = createComponentState<DialogState>({
|
|
key: 'dialog/internal-state',
|
|
defaultValue: {
|
|
maxQueue: 2,
|
|
queue: [],
|
|
},
|
|
});
|