34 lines
1,017 B
TypeScript
34 lines
1,017 B
TypeScript
// Module ID: 12158
|
|
// Function ID: 12159
|
|
// Name: useGetApplicationFromBotUserId
|
|
// Dependencies: [7227, 676, 589, 2]
|
|
// Exports: default
|
|
|
|
// Module 12158 (useGetApplicationFromBotUserId)
|
|
import closure_2 from "createUserWidgetFromServer" /* 7227 */;
|
|
import { EMPTY_STRING_SNOWFLAKE_ID } from "ME" /* 676 */;
|
|
|
|
const require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
|
|
|
|
export default function useGetApplicationFromBotUserId(arg0) {
|
|
const _require = arg0;
|
|
const items = [closure_2];
|
|
const stateFromStores = _require(589).useStateFromStores(items, () => {
|
|
let tmp = closure_0;
|
|
let tmp2;
|
|
if (null !== closure_0) {
|
|
if (tmp == null) {
|
|
tmp = closure_1_3;
|
|
}
|
|
const userProfile = closure_1_2.getUserProfile(tmp);
|
|
let application;
|
|
if (userProfile != null) {
|
|
application = userProfile.application;
|
|
}
|
|
tmp2 = application;
|
|
}
|
|
return tmp2;
|
|
});
|
|
return stateFromStores;
|
|
};
|