mobx-react-routing
Version:
MobX react-router-dom integration
6 lines • 351 B
TypeScript
import { ComponentType } from 'react';
import type { RouterStore } from '../router/index.js';
export declare function withRouteBlocker<P>(router: RouterStore, Component: ComponentType<P>, Fallback?: ComponentType): ((props: P) => import("react/jsx-runtime").JSX.Element) & {
displayName: string;
};
//# sourceMappingURL=with-route-blocker.d.ts.map