"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePostOnboardingEntryPointVisibleOnWallet = void 0;
const react_redux_1 = require("react-redux");
const reducer_1 = require("../reducer");
const useAllPostOnboardingActionsCompleted_1 = require("./useAllPostOnboardingActionsCompleted");
/**
 *
 * @returns a boolean representing whether the post onboarding entry point
 * should be visible on the wallet page.
 */
function usePostOnboardingEntryPointVisibleOnWallet() {
    const deviceModelId = (0, react_redux_1.useSelector)(reducer_1.postOnboardingDeviceModelIdSelector);
    const dismissed = (0, react_redux_1.useSelector)(reducer_1.walletPostOnboardingEntryPointDismissedSelector);
    const allCompleted = (0, useAllPostOnboardingActionsCompleted_1.useAllPostOnboardingActionsCompleted)();
    return !!deviceModelId && !(dismissed || allCompleted);
}
exports.usePostOnboardingEntryPointVisibleOnWallet = usePostOnboardingEntryPointVisibleOnWallet;
//# sourceMappingURL=usePostOnboardingEntryPointVisibleOnWallet.js.map