decord/source/modules/app_channels/useAppChannelApplication.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

25 lines
809 B
TypeScript

// Module ID: 11616
// Function ID: 11617
// Name: useAppChannelApplication
// Dependencies: [1074, 7163, 2]
// Exports: useAppChannelApplication
// Module 11616 (useAppChannelApplication)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import fetchApplication from "fetchApplication" /* 7163 */;
const ChannelTypes = ME.ChannelTypes;
const result = set.fileFinishedImporting("modules/app_channels/useAppChannelApplication.tsx");
export const useAppChannelApplication = function useAppChannelApplication(stateFromStores) {
let type;
if (stateFromStores != null) {
type = stateFromStores.type;
}
let application_id;
if (type === ChannelTypes.GUILD_APP) {
application_id = stateFromStores.application_id;
}
return fetchApplication.useApplication(application_id).data;
};