decord/source/modules/client_themes/ClientThemesBackgroundActionCreators.tsx

25 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 15258
// Function ID: 15259
// Name: ClientThemesBackgroundActionCreators
// Dependencies: [573, 2]
2026-07-20 16:05:17 +00:00
// Exports: resetBackgroundGradientPreset, resetPreviewClientTheme, updateBackgroundGradientPreset, updateMobilePendingThemeIndex
// Module 15258 (ClientThemesBackgroundActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/client_themes/ClientThemesBackgroundActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const updateBackgroundGradientPreset = function updateBackgroundGradientPreset(id) {
DispatcherDefault.dispatch({ type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: id });
2026-07-20 16:05:17 +00:00
};
export const updateMobilePendingThemeIndex = function updateMobilePendingThemeIndex(mobileThemesIndex) {
DispatcherDefault.dispatch({ type: "UPDATE_MOBILE_PENDING_THEME_INDEX", mobileThemesIndex });
2026-07-20 16:05:17 +00:00
};
export const resetBackgroundGradientPreset = function resetBackgroundGradientPreset() {
DispatcherDefault.dispatch({ type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: null });
2026-07-20 16:05:17 +00:00
};
export const resetPreviewClientTheme = function resetPreviewClientTheme() {
DispatcherDefault.dispatch({ type: "RESET_PREVIEW_CLIENT_THEME" });
2026-07-20 16:05:17 +00:00
};