decord/source/actions/NoticeActionCreators.tsx
2026-09-02 09:53:35 +00:00

24 lines
658 B
TypeScript

// Module ID: 16620
// Function ID: 16621
// Name: dispatcher
// Dependencies: [706, 2]
// Module 16620 (dispatcher)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 706 */;
const result = set.fileFinishedImporting("actions/NoticeActionCreators.tsx");
export default {
show(type, message, buttonText, callback, id) {
let obj = dispatcherDefault;
obj = { id, type, message, buttonText, callback };
obj.dispatch({ type: "NOTICE_SHOW", notice: obj });
},
dismiss(arg0) {
let obj = dispatcherDefault;
obj = { type: "NOTICE_DISMISS" };
const merged = Object.assign(arg0);
obj.dispatch(obj);
}
};