decord/source/actions/native/InAppNotificationActionCreators.tsx

24 lines
642 B
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 10205
// Function ID: 10206
2026-07-23 10:11:24 +00:00
// Name: dispatcher
2026-09-02 09:53:35 +00:00
// Dependencies: [706, 2]
2026-07-20 16:05:17 +00:00
2026-09-03 10:05:34 +00:00
// Module 10205 (dispatcher)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import dispatcherDefault from "dispatcher" /* 706 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("actions/native/InAppNotificationActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
2026-07-30 10:14:41 +00:00
enqueueNotification(buildResult) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-30 10:14:41 +00:00
obj = { type: "ENQUEUE_IN_APP_NOTIFICATION", notification: buildResult };
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
},
clearNotification() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.wait(() => {
2026-07-29 08:29:29 +00:00
callback(table[0]).dispatch({ type: "CLEAR_IN_APP_NOTIFICATION" });
2026-07-20 16:05:17 +00:00
});
}
};