18 lines
697 B
TypeScript
18 lines
697 B
TypeScript
// Metro module 6329 (f6330).
|
|
import { useEffect } from "react";
|
|
import IAPStore_android from "../../../stores/native/IAPStore.android";
|
|
import { useStateFromStores } from "../../../_bundle/Module589";
|
|
import AlertActionCreators from "../../../actions/AlertActionCreators";
|
|
import { intl, t } from "../../../intl/index.native";
|
|
export default function useStoreConnectionErrorAlert() {
|
|
const stateFromStores = useStateFromStores([IAPStore_android], () => IAPStore_android.hasConnectionError());
|
|
useEffect(() => {
|
|
if (stateFromStores) {
|
|
AlertActionCreators.show({
|
|
title: intl.string(t["U+H+kd"]),
|
|
body: intl.string(t.Q9OYlM)
|
|
});
|
|
}
|
|
}, [stateFromStores]);
|
|
};
|