decord/stable/source/modules/applications/getApplicationFromBotUserId.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

37 lines
1.1 KiB
TypeScript

// Module ID: 12882
// Function ID: 12883
// Name: getApplicationFromBotUserId
// Dependencies: [7889, 1074, 504, 2]
// Exports: default
// Module 12882 (getApplicationFromBotUserId)
import UserProfileStore from "UserProfileStore" /* 7889 */;
const require = globalThis.__r;
const require = fn;
const EMPTY_STRING_SNOWFLAKE_ID = fn(1074).EMPTY_STRING_SNOWFLAKE_ID;
const size = fn(2);
const result = size.fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
export default function useGetApplicationFromBotUserId(arg0) {
_require = arg0;
const items = [UserProfileStore];
const stateFromStores = require("initialize").useStateFromStores(items, () => {
let tmp = closure_0;
let tmp2;
if (null !== closure_0) {
if (tmp == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
}
const userProfile = UserProfileStore.getUserProfile(tmp);
let application;
if (userProfile != null) {
application = userProfile.application;
}
tmp2 = application;
}
return tmp2;
});
return stateFromStores;
};