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

35 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 16855
// Function ID: 16856
// Name: ThreadAutoArchiveBottomSheet
// Dependencies: [19, 1964, 21, 9338, 5699, 1114, 5702, 2]
2026-07-20 16:05:17 +00:00
// Module 16855 (ThreadAutoArchiveBottomSheet)
import TableRadioRow from "TableRadioRow" /* 5702 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
require = fn;
const ChannelFlags = fn(1964).ChannelFlags;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx");
export const AutoArchiveDurationOptions = noop.memo((channel) => {
2026-07-20 16:05:17 +00:00
channel = channel.channel;
_require = undefined;
2026-07-20 16:05:17 +00:00
({ title, description, selected, onSelectDuration } = channel);
const autoArchiveOptions = require("ThreadAutoArchive").getAutoArchiveOptions();
2026-07-20 16:05:17 +00:00
let hasFlagResult = null != channel && channel.isForumPost();
if (hasFlagResult) {
hasFlagResult = channel.hasFlag(ChannelFlags.PINNED);
}
2026-07-23 10:11:24 +00:00
_require = hasFlagResult;
const obj2 = { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null };
const intl = tmp(1114).intl;
obj2.accessibilityLabel = intl.string(require("util").t.H4mGfI);
obj2.onChange = onSelectDuration;
obj2.children = autoArchiveOptions.map((value) => jsx(TableRadioRow.TableRadioRow, { value: value.value, disabled, label: value.label }, value.value));
return jsx(require("TableRadioGroup").TableRadioGroup, { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null });
2026-07-20 16:05:17 +00:00
});