// Metro module 13629 (f13630). import ThemeStore from "../../../user_settings/ThemeStore"; import AuthenticationStore from "../../../../stores/AuthenticationStore"; import { useStateFromStores } from "../../../../_bundle/Module589"; import { useIsModalOpen } from "../../../main_tabs_v2/helpers/NavigationRouteUtils.native"; import { isThemeDark } from "../../../../design/shared"; import { useGlobalStatusIndicatorState } from "../../../connectivity/native/useGlobalStatusIndicatorState"; import StatusBar_android from "./StatusBar.android"; export default function ThemedStatusBar() { let r30; const stateFromStores = useStateFromStores([AuthenticationStore], () => AuthenticationStore.isAuthenticated()); const isModalOpen = useIsModalOpen(); const stateFromStores2 = useStateFromStores([ThemeStore], () => isThemeDark(ThemeStore.theme)); const globalStatusIndicatorState = useGlobalStatusIndicatorState(); let barStyle = "light-content"; if (stateFromStores) { L10: { if (isModalOpen) { r30 = stateFromStores2 ? "light-content" : "dark-content"; } else { if (!(globalStatusIndicatorState.isVisible && globalStatusIndicatorState.isCustomBackground)) { r30 = "dark-content"; if (!stateFromStores2) { break L10; } } r30 = "light-content"; } } barStyle = r30; } return ; };