@fluentui/state
Version:
A set of utils to create framework agnostic and reusable state managers
11 lines (10 loc) • 390 B
TypeScript
import { Manager, ManagerConfig } from '../types';
export declare type DialogActions = {
close: () => void;
open: () => void;
};
export declare type DialogState = {
open: boolean;
};
export declare type DialogManager = Manager<DialogState, DialogActions>;
export declare const createDialogManager: (config?: Partial<ManagerConfig<DialogState, DialogActions>>) => DialogManager;