This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,26 @@
// Metro module 9708 (f9709).
import AccessibilityStore from "../../a11y/AccessibilityStore";
import useTheme from "../../../hooks/useTheme";
import { useStateFromStores } from "../../../_bundle/Module589";
import { isThemeDark } from "../../../design/utils/shared/themes";
export function useThemeAndReducedMotionAwareAssetUrl(a0, a1) {
let lightStaticUrl;
const theme = useTheme();
const stateFromStores = useStateFromStores([AccessibilityStore], () => AccessibilityStore.useReducedMotion);
let r17 = null;
if (a0 != null) {
L11: {
if (!isThemeDark(theme) && !a1) {
if (stateFromStores) {
lightStaticUrl = a0.lightStaticUrl;
break L11;
}
lightStaticUrl = a0.lightUrl;
} else {
lightStaticUrl = stateFromStores ? a0.darkStaticUrl : a0.darkUrl;
}
}
r17 = lightStaticUrl;
}
return r17;
}