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,23 @@
// Metro module 12173 (f12174).
import AuthenticationStore from "../../../stores/AuthenticationStore";
import UserProfileStore from "../UserProfileStore";
import WidgetStore from "../WidgetStore";
import { useStateFromStores, useStateFromStoresArray } from "../../../_bundle/Module589";
export default function useUserProfileWidgets(a0) {
const stateFromStores = useStateFromStores([AuthenticationStore], () => {
const id = AuthenticationStore.getId();
return a0 != null && id === a0;
}, [a0]);
const stateFromStores2 = useStateFromStores([WidgetStore], () => WidgetStore.getPendingWidgets());
const stateFromStoresArray = useStateFromStoresArray([UserProfileStore], () => {
if (a0 == null) {
return [];
}
let r8 = UserProfileStore.getUserProfile(a0)?.widgets;
if (r8 == null) {
r8 = [];
}
return r8;
}, [a0]);
return stateFromStores ? stateFromStores2 !== null ? stateFromStores2 : stateFromStoresArray : stateFromStoresArray;
};