27 lines
769 B
TypeScript
27 lines
769 B
TypeScript
// Metro module 10270 (f10271).
|
|
import { Storage } from "../../../_bundle/Module595";
|
|
import { createWithEqualityFn } from "../../../_bundle/identity_700";
|
|
import { shallow } from "../../../_bundle/Module3802";
|
|
let c6855_2 = "InAppMessageSoundsEnabled";
|
|
const withEqualityFn = createWithEqualityFn(() => {
|
|
let isEnabled = Storage.get(c6855_2);
|
|
if (isEnabled == null) {
|
|
isEnabled = true;
|
|
}
|
|
return {
|
|
isEnabled
|
|
};
|
|
});
|
|
export function isInAppMessageSoundsEnabled() {
|
|
return withEqualityFn.getState().isEnabled;
|
|
}
|
|
export function setInAppMessageSoundsEnabled(a0) {
|
|
Storage.set(c6855_2, a0);
|
|
withEqualityFn.setState({
|
|
isEnabled: a0
|
|
});
|
|
}
|
|
export function useInAppMessageSoundsEnabled() {
|
|
return withEqualityFn((a0) => a0.isEnabled, shallow);
|
|
}
|