decord/source/modules/app_channels/useAppChannelApplication.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

25 lines
864 B
TypeScript

// Module ID: 11704
// Function ID: 11705
// Name: useAppChannelApplication
// Dependencies: [1074, 7236, 2]
// Exports: useAppChannelApplication
// Module 11704 (useAppChannelApplication)
import Constants from "Constants" /* 1074 */;
import ApplicationActionCreators from "ApplicationActionCreators" /* 7236 */;
import size from "module_2" /* 2 */;
const ChannelTypes = Constants.ChannelTypes;
const result = size.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 ApplicationActionCreators.useApplication(application_id).data;
};