@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
10 lines (9 loc) • 336 B
TypeScript
import { InitialDialogState, DialogState } from "./state";
export type DialogHookOptions = {
initialState?: InitialDialogState;
};
/**
* useDialogState is a hook that creates and manages an Dialog's state on the
* Airplane context
*/
export declare const useDialogState: (id: string, options?: DialogHookOptions) => DialogState;