decord/alpha/source/modules/app_channels/useAppChannelApplication.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

25 lines
864 B
TypeScript

// Module ID: 11319
// Function ID: 11320
// Name: useAppChannelApplication
// Dependencies: [1074, 6770, 2]
// Exports: useAppChannelApplication
// Module 11319 (useAppChannelApplication)
import Constants from "Constants" /* 1074 */;
import ApplicationActionCreators from "ApplicationActionCreators" /* 6770 */;
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;
};