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

33 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 16398
// Function ID: 16399
2026-07-20 16:05:17 +00:00
// Name: AutoArchiveDurationOptions
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 1394, 21, 8162, 7692, 1236, 7693, 2]
2026-07-20 16:05:17 +00:00
2026-09-01 10:26:29 +00:00
// Module 16398 (AutoArchiveDurationOptions)
2026-08-31 15:47:37 +00:00
import { ChannelFlags } from "set" /* 1394 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const memoResult = importAllResult.memo((channel) => {
2026-07-20 16:05:17 +00:00
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-09-01 10:26:29 +00:00
let obj = _require(8162);
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;
2026-08-24 06:08:38 +00:00
obj[6] = autoArchiveOptions.map((value) => closure_1_3(_undefined(closure_1_1[6]).TableRadioRow, { value: value.value, disabled: _undefined, label: value.label }, value.value));
2026-09-01 10:26:29 +00:00
return jsx(_require(7692).TableRadioGroup, { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null });
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx");
2026-07-20 16:05:17 +00:00
export const AutoArchiveDurationOptions = memoResult;