decord/source/modules/client_themes/ClientThemesBackgroundActionCreators.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

28 lines
1.2 KiB
TypeScript

// Module ID: 15178
// Function ID: 15179
// Name: updateBackgroundGradientPreset
// Dependencies: [573, 2]
// Exports: resetBackgroundGradientPreset, resetPreviewClientTheme, updateBackgroundGradientPreset, updateMobilePendingThemeIndex
// Module 15178 (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" });
};