@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
14 lines • 695 B
JavaScript
import React from "react";
const defaultValue = {
navigateToPostOnboardingHub: () => { },
getPostOnboardingAction: undefined,
getPostOnboardingActionsForDevice: () => [],
};
export const PostOnboardingContext = React.createContext(defaultValue);
export 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.createElement(PostOnboardingContext.Provider, { value: props }, children);
};
//# sourceMappingURL=PostOnboardingProvider.js.map