decord/source/modules/client_themes/ClientThemesBackgroundActionCreators.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

24 lines
1.2 KiB
TypeScript

// Module ID: 15208
// Function ID: 15209
// Name: ClientThemesBackgroundActionCreators
// Dependencies: [573, 2]
// Exports: resetBackgroundGradientPreset, resetPreviewClientTheme, updateBackgroundGradientPreset, updateMobilePendingThemeIndex
// Module 15208 (ClientThemesBackgroundActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/client_themes/ClientThemesBackgroundActionCreators.tsx");
export const updateBackgroundGradientPreset = function updateBackgroundGradientPreset(id) {
DispatcherDefault.dispatch({ type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: id });
};
export const updateMobilePendingThemeIndex = function updateMobilePendingThemeIndex(mobileThemesIndex) {
DispatcherDefault.dispatch({ type: "UPDATE_MOBILE_PENDING_THEME_INDEX", mobileThemesIndex });
};
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" });
};