decord/beta/source/modules/app_channels/useAppChannelApplication.tsx

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 10974
// Function ID: 10975
// Name: useAppChannelApplication
2026-10-02 13:37:24 +00:00
// Dependencies: [1086, 558, 6585, 2]
2026-10-02 13:37:24 +00:00
// Module 10974 (useAppChannelApplication)
import Constants from "Constants" /* 1086 */;
import ApplicationActionCreators from "ApplicationActionCreators" /* 6585 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-02 13:37:24 +00:00
let type;
2026-10-02 13:37:24 +00:00
const ChannelTypes = Constants.ChannelTypes;
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((type) => {
type = undefined;
if (type != null) {
type = type.type;
}
let application_id;
if (type === ChannelTypes.GUILD_APP) {
2026-10-02 13:37:24 +00:00
application_id = type.application_id;
}
2026-10-01 14:13:23 +00:00
const obj = ApplicationActionCreators;
return obj.useApplication(application_id).data;
2026-10-02 13:37:24 +00:00
}) : ((type) => {
type = undefined;
if (type != null) {
type = type.type;
}
let application_id;
if (type === ChannelTypes.GUILD_APP) {
application_id = type.application_id;
}
const obj = ApplicationActionCreators;
return obj.useApplication(application_id).data;
});
const result = size.fileFinishedImporting("modules/app_channels/useAppChannelApplication.tsx");
export const useAppChannelApplication = tmp2;