decord/source/actions/NoticeActionCreators.tsx

22 lines
585 B
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 15955
// Function ID: 15956
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-12 06:57:52 +00:00
// Module 15955 (dispatcher)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("actions/NoticeActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
show(type, message, buttonText, callback, id) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { id, type, message, buttonText, callback };
obj.dispatch({ type: "NOTICE_SHOW", notice: obj });
},
dismiss(arg0) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "NOTICE_DISMISS" };
const merged = Object.assign(arg0);
obj.dispatch(obj);
}
};