UNPKG

crux-wrapper

Version:

A React provider for your crux application

17 lines 508 B
import react from "react"; import { State } from "./state.js"; import { CoreContext } from "./CoreProvider.js"; /** * Provides a context that exposes the crux api. */ export function MockCoreProvider({ children, dispatch, state }) { return react.createElement(CoreContext.Provider, { value: { dispatch: dispatch ?? (async () => { }), state: state, logs: [], ready: true, }, }, children); } //# sourceMappingURL=MockCoreProvider.js.map