2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 11106
|
|
|
|
|
// Function ID: 11107
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useAppChannelApplication
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [1074, 6584, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: useAppChannelApplication
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 11106 (useAppChannelApplication)
|
2026-09-26 17:57:22 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import ApplicationActionCreators from "ApplicationActionCreators" /* 6584 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const ChannelTypes = Constants.ChannelTypes;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/app_channels/useAppChannelApplication.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export const useAppChannelApplication = function useAppChannelApplication(stateFromStores) {
|
|
|
|
|
let type;
|
|
|
|
|
if (stateFromStores != null) {
|
|
|
|
|
type = stateFromStores.type;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
let application_id;
|
|
|
|
|
if (type === ChannelTypes.GUILD_APP) {
|
2026-09-26 17:57:22 +00:00
|
|
|
application_id = stateFromStores.application_id;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
return ApplicationActionCreators.useApplication(application_id).data;
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|