Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
// Module ID: 12079
|
|
// Function ID: 12080
|
|
// Name: getApplicationFromBotUserId
|
|
// Dependencies: [7030, 1074, 504, 2]
|
|
// Exports: default
|
|
|
|
// Module 12079 (getApplicationFromBotUserId)
|
|
import UserProfileStore from "UserProfileStore" /* 7030 */;
|
|
|
|
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;
|
|
};
|