// 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; }