decord/alpha/source/modules/conjure/publish/useConjurePublishedChannelId.tsx
2026-10-09 10:00:15 +00:00

75 lines
2.2 KiB
TypeScript

// Module ID: 17015
// Function ID: 17016
// Name: useConjurePublishedChannelId
// Dependencies: [4707, 558, 576, 6939, 504, 2]
// Module 17015 (useConjurePublishedChannelId)
import ConjureUtils from "ConjureUtils" /* 6939 */;
import GuildChannelStore from "GuildChannelStore" /* 4707 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const require = globalThis.__r;
let _require, dependencyMap;
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useConjurePublishedChannelId(arg0, arg1) {
let closure_0;
let closure_1;
let first;
_require = arg0;
dependencyMap = arg1;
const tmp = _require;
let obj = require("react");
const cResult = obj.c(5);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [GuildChannelStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] === arg1) {
let tmp6;
let tmp7;
if (cResult[2] === arg0) {
tmp6 = cResult[3];
tmp7 = cResult[4];
}
const tmpResult = tmp(504);
return tmpResult.useStateFromStores(first, tmp6, tmp7);
}
const fn = function t() {
let findConjureChannelIdResult = null;
if (null != closure_1) {
const obj = ConjureUtils;
findConjureChannelIdResult = obj.findConjureChannelId(closure_0, tmp);
}
return findConjureChannelIdResult;
};
const items1 = [arg0, arg1];
cResult[1] = arg1;
cResult[2] = arg0;
cResult[3] = fn;
cResult[4] = items1;
tmp7 = items1;
tmp6 = fn;
}) : (function useConjurePublishedChannelId(arg0, arg1) {
let closure_0;
let closure_1;
_require = arg0;
dependencyMap = arg1;
let obj = require("get initialized");
const items = [GuildChannelStore];
const items1 = [arg0, arg1];
return obj.useStateFromStores(items, () => {
let findConjureChannelIdResult = null;
if (null != closure_1) {
const obj = ConjureUtils;
findConjureChannelIdResult = obj.findConjureChannelId(closure_0, tmp);
}
return findConjureChannelIdResult;
}, items1);
});
const result = size.fileFinishedImporting("modules/conjure/publish/useConjurePublishedChannelId.tsx");
export default tmp2;