decord/beta/source/modules/app_channels/useAppChannelApplication.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

35 lines
1.1 KiB
TypeScript

// Module ID: 11767
// Function ID: 11768
// Name: useAppChannelApplication
// Dependencies: [1078, 558, 7442, 2]
// Module 11767 (useAppChannelApplication)
import Constants from "Constants" /* 1078 */;
import ApplicationActionCreators from "ApplicationActionCreators" /* 7442 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const ChannelTypes = Constants.ChannelTypes;
const result = size.fileFinishedImporting("modules/app_channels/useAppChannelApplication.tsx");
export const useAppChannelApplication = ReactCompilerGating.isReactCompilerEnabled() ? ((type) => {
type = undefined;
if (type != null) {
type = type.type;
}
let application_id;
if (type === ChannelTypes.GUILD_APP) {
application_id = type.application_id;
}
return ApplicationActionCreators.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;
}
return ApplicationActionCreators.useApplication(application_id).data;
});