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

39 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 6949
// Function ID: 6950
// Name: useAppChannelApplication
2026-10-12 16:32:48 +00:00
// Dependencies: [1085, 558, 6853, 2]
2026-10-12 16:32:48 +00:00
// Module 6949 (useAppChannelApplication)
2026-10-07 22:43:51 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-12 16:32:48 +00:00
import ApplicationActionCreators from "ApplicationActionCreators" /* 6853 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-02 13:37:24 +00:00
const ChannelTypes = Constants.ChannelTypes;
2026-10-12 16:32:48 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useAppChannelApplication(type) {
2026-10-02 13:37:24 +00:00
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-12 16:32:48 +00:00
}) : (function useAppChannelApplication(type) {
2026-10-02 13:37:24 +00:00
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;