2026-08-26 06:04:24 +00:00
|
|
|
// Module ID: 10469
|
|
|
|
|
// Function ID: 10470
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCreateThreadViewProps
|
2026-08-26 06:04:24 +00:00
|
|
|
// Dependencies: [1391, 10124, 647, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-26 06:04:24 +00:00
|
|
|
// Module 10469 (useCreateThreadViewProps)
|
|
|
|
|
import useGetThreadDraftSettingsDefault from "useGetThreadDraftSettings" /* 10124 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_3 from "ensureGuildLoaded" /* 1391 */;
|
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;
|
|
|
|
|
let obj = _require(647);
|
|
|
|
|
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;
|
|
|
|
|
};
|