import * as React from 'react';
const fallbackCtx = React.createContext(null);
export function useFallbackCtx() {
    const ctx = React.useContext(fallbackCtx);
    if (!ctx) {
        throw new Error('useFallback must be used within FallbackCtx');
    }
    return ctx;
}
export default fallbackCtx;
//# sourceMappingURL=fallback-context.js.map