decord/source/modules/client_themes/ClientThemesBackgroundActionCreators.tsx

29 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14597
// Function ID: 14598
2026-07-20 16:05:17 +00:00
// Name: updateBackgroundGradientPreset
2026-07-29 08:29:29 +00:00
// Dependencies: [709, 2]
2026-07-20 16:05:17 +00:00
// Exports: resetBackgroundGradientPreset, resetPreviewClientTheme, updateBackgroundGradientPreset, updateMobilePendingThemeIndex
2026-08-24 06:08:38 +00:00
// Module 14597 (updateBackgroundGradientPreset)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 709 */;
const result = set.fileFinishedImporting("modules/client_themes/ClientThemesBackgroundActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const updateBackgroundGradientPreset = function updateBackgroundGradientPreset(id) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: id };
obj.dispatch(obj);
};
export const updateMobilePendingThemeIndex = function updateMobilePendingThemeIndex(mobileThemesIndex) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "UPDATE_MOBILE_PENDING_THEME_INDEX", mobileThemesIndex };
obj.dispatch(obj);
};
export const resetBackgroundGradientPreset = function resetBackgroundGradientPreset() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: null });
2026-07-20 16:05:17 +00:00
};
export const resetPreviewClientTheme = function resetPreviewClientTheme() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "RESET_PREVIEW_CLIENT_THEME" });
2026-07-20 16:05:17 +00:00
};