decord/source/modules/toast/native/ToastStore.tsx

43 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 16995
// Function ID: 16996
2026-07-29 08:29:29 +00:00
// Name: ToastStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 16995 (ToastStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class ToastStore extends Store {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.getContent = function getContent() {
return _null;
2026-07-29 08:29:29 +00:00
};
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
ToastStore.displayName = "ToastStore";
const toastStore = new ToastStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
TOAST_OPEN: function handleOpen(toastProps) {
toastProps = toastProps.toastProps;
let key;
if (_null != null) {
key = _null.key;
2026-07-20 16:05:17 +00:00
}
if (key === toastProps.key) {
return false;
} else {
_null = toastProps;
2026-07-20 16:05:17 +00:00
}
},
TOAST_CLOSE: function handleClose() {
2026-08-24 06:08:38 +00:00
c0 = null;
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/toast/native/ToastStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default toastStore;