decord/beta/source/modules/applications/getApplicationFromBotUserId.tsx
2026-10-01 14:13:23 +00:00

41 lines
1.2 KiB
TypeScript

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