"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useInternalAppIds = void 0;
const react_1 = require("react");
const featureFlags_1 = require("../featureFlags");
const constants_1 = require("../wallet-api/constants");
/** Returns array of manifest ids for internal apps that can navigate to and from external urls, e.g. the current version of buy sell live app, which requires javaScriptCanOpenWindowsAutomatically to be enabled. See also WebPTXPlayer. */
const useInternalAppIds = () => {
    const customBuySellAppId = (0, featureFlags_1.useFeature)("buySellUi")?.params?.manifestId;
    const internalAppIds = (0, react_1.useMemo)(() => (customBuySellAppId ? constants_1.INTERNAL_APP_IDS.concat([customBuySellAppId]) : constants_1.INTERNAL_APP_IDS), [customBuySellAppId]);
    return internalAppIds;
};
exports.useInternalAppIds = useInternalAppIds;
//# sourceMappingURL=useInternalAppIds.js.map