decord/alpha/source/components_native/chat/isAlertOrActionSheetOpen.tsx

36 lines
1,016 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 9597
// Function ID: 9598
2026-07-20 16:05:17 +00:00
// Name: isAlertOrActionSheetOpen
2026-10-09 10:00:15 +00:00
// Dependencies: [4761, 9598, 5300, 2]
2026-07-20 16:05:17 +00:00
// Exports: isAlertOrActionSheetOpen
2026-10-09 10:00:15 +00:00
// Module 9597 (isAlertOrActionSheetOpen)
import useAlertStore2 from "useAlertStore" /* 5300 */;
import ActionSheetStore from "ActionSheetStore" /* 4761 */;
import AlertStore from "AlertStore" /* 9598 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("components_native/chat/isAlertOrActionSheetOpen.tsx");
2026-07-20 16:05:17 +00:00
export const isAlertOrActionSheetOpen = function isAlertOrActionSheetOpen(selectedChannelId) {
let obj = arg1;
if (arg1 === undefined) {
obj = ActionSheetStore;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj2 = arg2;
if (arg2 === undefined) {
obj2 = AlertStore;
2026-07-20 16:05:17 +00:00
}
let tmp = null != obj.getContent();
const tmp2 = null != obj2.getAlert();
2026-10-03 08:58:59 +00:00
const useAlertStore = useAlertStore2.useAlertStore;
const tmp3 = useAlertStore.getState().alerts.length > 0;
2026-07-20 16:05:17 +00:00
if (!tmp) {
tmp = tmp2;
}
if (!tmp) {
tmp = tmp3;
}
return tmp;
};