@rtbjs/use-state
Version:
`@rtbjs/use-state` is a state management tool that can act as a local state and be easily turned into a global redux state. It is an innovative approach to state management that combines the advantages of both React's useState and Redux's state management
17 lines (16 loc) • 804 B
TypeScript
import * as React from 'react';
import { ModalProps } from 'antd/lib/modal';
import { DraggableModalContextMethods } from './DraggableModalContext';
import { ModalID, ModalState } from './draggableModalReducer';
interface ContextProps extends DraggableModalContextMethods {
id: ModalID;
modalState: ModalState;
initialWidth?: number;
initialHeight?: number;
}
export type DraggableModalInnerProps = ModalProps & {
children?: React.ReactNode;
} & ContextProps;
declare function DraggableModalInnerNonMemo({ id, modalState, dispatch, open, children, title, initialWidth, initialHeight, ...otherProps }: DraggableModalInnerProps): import("react/jsx-runtime").JSX.Element;
export declare const DraggableModalInner: React.MemoExoticComponent<typeof DraggableModalInnerNonMemo>;
export {};