decord/source/actions/DraftActionCreators.tsx
2026-07-27 11:26:19 +00:00

30 lines
937 B
TypeScript

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