decord/source/modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

29 lines
1.2 KiB
TypeScript

// Module ID: 16912
// Function ID: 16913
// Name: shouldExcludeSafeAreaForModalKey
// Dependencies: [1074, 9606, 8392, 4781, 2]
// Exports: shouldExcludeSafeAreaForModalKey
// Module 16912 (shouldExcludeSafeAreaForModalKey)
import Constants2 from "Constants" /* 1074 */;
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4781 */;
import SharePreparingModalConstants from "SharePreparingModalConstants" /* 8392 */;
import Constants from "Constants" /* 9606 */;
import size from "module_2" /* 2 */;
({ OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_ERROR_RESULT_MODAL_KEY, OAUTH2_SUCCESS_RESULT_MODAL_KEY } = Constants);
const items = [Constants2.MEDIA_MODAL_KEY, OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_SUCCESS_RESULT_MODAL_KEY, OAUTH2_ERROR_RESULT_MODAL_KEY, SharePreparingModalConstants.SHARE_PREPARING_MODAL_KEY];
const set = new Set(items);
const result = size.fileFinishedImporting("modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx");
export const shouldExcludeSafeAreaForModalKey = function shouldExcludeSafeAreaForModalKey(key) {
let tmp = null != key;
if (tmp) {
let hasItem = PrivateChannelCallUtils.isVoiceChannelModalKey(key);
if (!hasItem) {
hasItem = set.has(key);
}
tmp = hasItem;
}
return tmp;
};