Files
discord-decomp/modules/client_themes/native/useCustomThemeDisplaySettings.tsx
T
2026-11-01 12:12:55 +02:00

27 lines
832 B
TypeScript

// Metro module 4124 (f4125).
import CustomThemeMobileStore from "./CustomThemeMobileStore";
import { useStateFromStoresArray } from "../../../_bundle/Module589";
export function useCustomThemeDisplaySettings(a0) {
const [customTheme, baseTheme, r18] = useStateFromStoresArray([CustomThemeMobileStore], () => [CustomThemeMobileStore.getCustomTheme(), CustomThemeMobileStore.getBaseTheme(), CustomThemeMobileStore.getPreviewTheme()]);
if (r18 !== void 0) {
return r18;
}
if (customTheme !== void 0 && baseTheme !== void 0) {
return {
baseTheme,
customTheme
};
}
if (a0 != null) {
return {
baseTheme: a0.base_theme,
customTheme: {
colors: a0.colors,
gradientAngle: a0.gradient_angle,
baseMix: a0.base_mix,
gradientColorStops: []
}
};
}
}