decord/source/modules/client_themes/ClientThemesBackgroundActionCreators.tsx

26 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 14529
// Function ID: 14530
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-15 05:55:55 +00:00
// Module 14529 (updateBackgroundGradientPreset)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/client_themes/ClientThemesBackgroundActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const updateBackgroundGradientPreset = function updateBackgroundGradientPreset(id) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
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-07-29 08:29:29 +00:00
let obj = importDefault(709);
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-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "UPDATE_BACKGROUND_GRADIENT_PRESET", presetId: null });
2026-07-20 16:05:17 +00:00
};
export const resetPreviewClientTheme = function resetPreviewClientTheme() {
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "RESET_PREVIEW_CLIENT_THEME" });
2026-07-20 16:05:17 +00:00
};