decord/source/modules/client_themes/ClientThemesBackgroundActionCreators.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

28 lines
1.2 KiB
TypeScript

// Module ID: 15181
// Function ID: 15182
// Name: updateBackgroundGradientPreset
// Dependencies: [573, 2]
// Exports: resetBackgroundGradientPreset, resetPreviewClientTheme, updateBackgroundGradientPreset, updateMobilePendingThemeIndex
// Module 15181 (updateBackgroundGradientPreset)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 573 */;
const result = set.fileFinishedImporting("modules/client_themes/ClientThemesBackgroundActionCreators.tsx");
export const updateBackgroundGradientPreset = function updateBackgroundGradientPreset(id) {
let obj = dispatcherDefault;
obj = { type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: id };
obj.dispatch(obj);
};
export const updateMobilePendingThemeIndex = function updateMobilePendingThemeIndex(mobileThemesIndex) {
let obj = dispatcherDefault;
obj = { type: "UPDATE_MOBILE_PENDING_THEME_INDEX", mobileThemesIndex };
obj.dispatch(obj);
};
export const resetBackgroundGradientPreset = function resetBackgroundGradientPreset() {
dispatcherDefault.dispatch({ type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: null });
};
export const resetPreviewClientTheme = function resetPreviewClientTheme() {
dispatcherDefault.dispatch({ type: "RESET_PREVIEW_CLIENT_THEME" });
};