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

25 lines
637 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4097
// Function ID: 4098
2026-07-23 10:11:24 +00:00
// Name: dispatcher
2026-07-29 08:29:29 +00:00
// Dependencies: [709, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 4097 (dispatcher)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 709 */;
const result = set.fileFinishedImporting("modules/toast/native/ToastActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
open(arg0) {
2026-08-24 06:08:38 +00:00
importDefault = arg0;
dispatcherDefault.wait(() => {
let obj = callback(closure_1_1[0]);
2026-07-23 10:11:24 +00:00
obj = { type: "TOAST_OPEN", toastProps: callback };
2026-07-20 16:05:17 +00:00
return obj.dispatch(obj);
});
},
close() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.wait(() => callback(table[0]).dispatch({ type: "TOAST_CLOSE" }));
2026-07-20 16:05:17 +00:00
}
};