2026-09-07 16:44:02 +00:00
|
|
|
// Module ID: 11363
|
|
|
|
|
// Function ID: 11364
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCreateThreadViewProps
|
2026-09-07 16:44:02 +00:00
|
|
|
// Dependencies: [1957, 10258, 563, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-07 16:44:02 +00:00
|
|
|
// Module 11363 (useCreateThreadViewProps)
|
|
|
|
|
import useGetThreadDraftSettingsDefault from "useGetThreadDraftSettings" /* 10258 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import closure_3 from "ensureGuildLoaded" /* 1957 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/threads/native/useCreateThreadViewProps.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useCreateThreadViewProps(arg0) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp = useGetThreadDraftSettingsDefault(arg0);
|
|
|
|
|
const _require = tmp;
|
2026-09-05 10:56:28 +00:00
|
|
|
let obj = _require(563);
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_3];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [tmp];
|
|
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
|
|
|
|
let parentChannelId;
|
2026-08-24 06:08:38 +00:00
|
|
|
if (parentChannelId != null) {
|
|
|
|
|
parentChannelId = parentChannelId.parentChannelId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
return closure_1_3.getChannel(parentChannelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
let tmp3 = null;
|
|
|
|
|
if (null != tmp) {
|
|
|
|
|
tmp3 = null;
|
|
|
|
|
if (null != stateFromStores) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { threadSettingsDraft: null, parentChannel: null };
|
|
|
|
|
obj[0] = tmp;
|
|
|
|
|
obj[1] = stateFromStores;
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp3 = obj;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
};
|