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

37 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 15807
// Function ID: 15808
2026-07-20 16:05:17 +00:00
// Name: AutoArchiveDurationOptions
2026-08-07 06:50:47 +00:00
// Dependencies: [19, 1379, 21, 8296, 7925, 1236, 7924, 2]
2026-07-20 16:05:17 +00:00
2026-08-07 06:50:47 +00:00
// Module 15807 (AutoArchiveDurationOptions)
2026-07-23 10:11:24 +00:00
import { ChannelFlags } from "set";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const memoResult = require("noop").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-08-07 06:50:47 +00:00
let obj = _require(8296);
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-29 08:29:29 +00:00
obj = { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null };
const intl = tmp(1236).intl;
obj[3] = intl.string(_require(1236).t.H4mGfI);
obj[4] = onSelectDuration;
obj[6] = autoArchiveOptions.map((value) => outer1_3(_undefined(outer1_1[6]).TableRadioRow, { value: value.value, disabled: _undefined, label: value.label }, value.value));
2026-08-07 06:50:47 +00:00
return jsx(_require(7925).TableRadioGroup, { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null });
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;