decord/stable/source/modules/app_channels/useAppChannelApplication.tsx
2026-10-06 22:12:49 +00:00

40 lines
1.2 KiB
TypeScript

// Module ID: 10974
// Function ID: 10975
// Name: useAppChannelApplication
// Dependencies: [1086, 558, 6585, 2]
// Module 10974 (useAppChannelApplication)
import Constants from "Constants" /* 1086 */;
import ApplicationActionCreators from "ApplicationActionCreators" /* 6585 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
let type;
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) {
application_id = type.application_id;
}
const obj = ApplicationActionCreators;
return obj.useApplication(application_id).data;
}) : ((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;