decord/source/actions/NoticeActionCreators.tsx

22 lines
640 B
TypeScript
Raw Normal View History

// Module ID: 16918
// Function ID: 16919
// Name: NoticeActionCreators
// Dependencies: [573, 2]
2026-07-20 16:05:17 +00:00
// Module 16918 (NoticeActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("actions/NoticeActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
show(type, message, buttonText, callback, id) {
const obj2 = { type: "NOTICE_SHOW", notice: { id, type, message, buttonText, callback } };
DispatcherDefault.dispatch(obj2);
2026-07-20 16:05:17 +00:00
},
dismiss(arg0) {
const merged = Object.assign(arg0);
DispatcherDefault.dispatch({ type: "NOTICE_DISMISS" });
2026-07-20 16:05:17 +00:00
}
};