"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostOnboardingProvider = exports.PostOnboardingContext = void 0;
const react_1 = __importDefault(require("react"));
const defaultValue = {
    navigateToPostOnboardingHub: () => { },
    getPostOnboardingAction: undefined,
    getPostOnboardingActionsForDevice: () => [],
};
exports.PostOnboardingContext = react_1.default.createContext(defaultValue);
const PostOnboardingProvider = ({ children, ...props }) => {
    if (!props.getPostOnboardingAction) {
        console.warn("`getPostOnboardingAction` prop is undefined in the current PostOnboardingProvider. Without this, the post onboarding is not able to function normally.");
    }
    return react_1.default.createElement(exports.PostOnboardingContext.Provider, { value: props }, children);
};
exports.PostOnboardingProvider = PostOnboardingProvider;
//# sourceMappingURL=PostOnboardingProvider.js.map