decord/source/modules/applications/getApplicationFromBotUserId.tsx

35 lines
1,017 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11818
// Function ID: 11819
2026-07-20 16:05:17 +00:00
// Name: useGetApplicationFromBotUserId
2026-08-24 06:08:38 +00:00
// Dependencies: [5370, 676, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11818 (useGetApplicationFromBotUserId)
import closure_2 from "createUserWidgetFromServer" /* 5370 */;
import { EMPTY_STRING_SNOWFLAKE_ID } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
2026-07-20 16:05:17 +00:00
export default function useGetApplicationFromBotUserId(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-08-24 06:08:38 +00:00
const items = [closure_2];
2026-07-29 08:29:29 +00:00
const stateFromStores = _require(589).useStateFromStores(items, () => {
let tmp = closure_0;
let tmp2;
2026-07-23 10:11:24 +00:00
if (null !== closure_0) {
2026-07-29 08:29:29 +00:00
if (tmp == null) {
2026-08-24 06:08:38 +00:00
tmp = closure_1_3;
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
const userProfile = closure_1_2.getUserProfile(tmp);
2026-07-20 16:05:17 +00:00
let application;
2026-07-29 08:29:29 +00:00
if (userProfile != null) {
2026-07-20 16:05:17 +00:00
application = userProfile.application;
}
2026-07-29 08:29:29 +00:00
tmp2 = application;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
return stateFromStores;
2026-07-20 16:05:17 +00:00
};