@chalkbooks/react-doc-viewer
Version:
File viewer for React.
13 lines (12 loc) • 415 B
TypeScript
import { Dispatch } from "react";
import { MainStateActions } from "../store/actions";
import { IMainState } from "../store/mainStateReducer";
import { DocRenderer } from "..";
/**
* Custom Hook for loading the current document into context
*/
export declare const useDocumentLoader: () => {
state: IMainState;
dispatch: Dispatch<MainStateActions>;
CurrentRenderer: DocRenderer | null | undefined;
};