decord/source/actions/DraftActionCreators.tsx
2026-07-31 08:44:05 +00:00

30 lines
954 B
TypeScript

// Module ID: 6092
// Function ID: 6093
// Name: dispatcher
// Dependencies: [709, 2]
// Module 6092 (dispatcher)
const result = require("set").fileFinishedImporting("actions/DraftActionCreators.tsx");
export default {
clearDraft(id, ThreadSettings) {
let obj = importDefault(709);
obj = { type: "DRAFT_CLEAR", channelId: id, draftType: ThreadSettings };
obj.dispatch(obj);
},
saveDraft(id, result, ChannelMessage) {
let obj = importDefault(709);
obj = { type: "DRAFT_SAVE", channelId: id, draft: result, draftType: ChannelMessage };
obj.dispatch(obj);
},
changeDraft(id, draft, ChannelMessage) {
let obj = importDefault(709);
obj = { type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage };
obj.dispatch(obj);
},
changeThreadSettings(id, draft) {
let obj = importDefault(709);
obj = { type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft };
obj.dispatch(obj);
}
};