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