decord/source/modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx

38 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 15611
// Function ID: 120096
2026-07-20 16:05:17 +00:00
// Name: AutoArchiveDurationOptions
2026-07-28 08:39:19 +00:00
// Dependencies: [31, 1355, 33, 6167, 7632, 1212, 7631, 2]
2026-07-20 16:05:17 +00:00
2026-07-28 08:39:19 +00:00
// Module 15611 (AutoArchiveDurationOptions)
2026-07-23 10:11:24 +00:00
import { ChannelFlags } from "set";
import { jsx } from "jsxProd";
import importAllResult from "result";
const require = arg1;
const memoResult = require("result").memo((channel) => {
2026-07-20 16:05:17 +00:00
let description;
let onSelectDuration;
let selected;
let title;
channel = channel.channel;
2026-07-23 10:11:24 +00:00
let _require;
2026-07-20 16:05:17 +00:00
({ title, description, selected, onSelectDuration } = channel);
2026-07-28 08:39:19 +00:00
let obj = _require(6167);
2026-07-20 16:05:17 +00:00
const autoArchiveOptions = obj.getAutoArchiveOptions();
let hasFlagResult = null != channel && channel.isForumPost();
if (hasFlagResult) {
hasFlagResult = channel.hasFlag(ChannelFlags.PINNED);
}
2026-07-23 10:11:24 +00:00
_require = hasFlagResult;
2026-07-20 16:05:17 +00:00
obj = { value: selected, title, description };
2026-07-23 10:11:24 +00:00
const intl = _require(1212).intl;
obj.accessibilityLabel = intl.string(_require(1212).t.H4mGfI);
2026-07-20 16:05:17 +00:00
obj.onChange = onSelectDuration;
obj.hasIcons = false;
2026-07-23 10:11:24 +00:00
obj.children = autoArchiveOptions.map((value) => outer1_3(_undefined(outer1_1[6]).TableRadioRow, { value: value.value, disabled: _undefined, label: value.label }, value.value));
2026-07-28 08:39:19 +00:00
return jsx(_require(7632).TableRadioGroup, { value: selected, title, description });
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx");
2026-07-20 16:05:17 +00:00
export const AutoArchiveDurationOptions = memoResult;