35 lines
1,021 B
TypeScript
35 lines
1,021 B
TypeScript
// Module ID: 10907
|
|
// Function ID: 10908
|
|
// Name: isAlertOrActionSheetOpen
|
|
// Dependencies: [4524, 10908, 5206, 2]
|
|
// Exports: isAlertOrActionSheetOpen
|
|
|
|
// Module 10907 (isAlertOrActionSheetOpen)
|
|
import useAlertStore2 from "useAlertStore" /* 5206 */;
|
|
import ActionSheetStore from "ActionSheetStore" /* 4524 */;
|
|
import AlertStore from "AlertStore" /* 10908 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("components_native/chat/isAlertOrActionSheetOpen.tsx");
|
|
|
|
export const isAlertOrActionSheetOpen = function isAlertOrActionSheetOpen(selectedChannelId) {
|
|
let obj = arg1;
|
|
if (arg1 === undefined) {
|
|
obj = ActionSheetStore;
|
|
}
|
|
let obj2 = arg2;
|
|
if (arg2 === undefined) {
|
|
obj2 = AlertStore;
|
|
}
|
|
let tmp = null != obj.getContent();
|
|
const tmp2 = null != obj2.getAlert();
|
|
const useAlertStore = useAlertStore2.useAlertStore;
|
|
const tmp3 = useAlertStore.getState().alerts.length > 0;
|
|
if (!tmp) {
|
|
tmp = tmp2;
|
|
}
|
|
if (!tmp) {
|
|
tmp = tmp3;
|
|
}
|
|
return tmp;
|
|
};
|