decord/source/modules/app_channels/useAppChannelApplication.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

25 lines
809 B
TypeScript

// Module ID: 11611
// Function ID: 11612
// Name: useAppChannelApplication
// Dependencies: [1074, 7163, 2]
// Exports: useAppChannelApplication
// Module 11611 (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;
};