Files
discord-decomp/modules/applications/getApplicationFromBotUserId.tsx
T
2026-11-01 12:12:55 +02:00

22 lines
633 B
TypeScript

// Metro module 11694 (f11695).
import UserProfileStore from "../user_profile/UserProfileStore";
import { EMPTY_STRING_SNOWFLAKE_ID } from "../../Constants";
import { useStateFromStores } from "../../_bundle/Module589";
export default function useGetApplicationFromBotUserId(c19079_0) {
let r13 = useStateFromStores([UserProfileStore], () => {
let r5 = c19079_0;
let r7 = void 0;
if (r5 !== null) {
if (r5 == null) {
r5 = EMPTY_STRING_SNOWFLAKE_ID;
}
r7 = UserProfileStore.getUserProfile(r5)?.application;
}
return r7;
});
if (r13 == null) {
r13 = void 0;
}
return r13;
};