32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
// Module ID: 16650
|
|
// Function ID: 16651
|
|
// Name: AutoArchiveDurationOptions
|
|
// Dependencies: [19, 1393, 21, 8174, 7704, 1233, 7705, 2]
|
|
|
|
// Module 16650 (AutoArchiveDurationOptions)
|
|
import { ChannelFlags } from "set" /* 1393 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import importAllResult from "noop" /* 19 */;
|
|
|
|
const require = arg1;
|
|
const memoResult = importAllResult.memo((channel) => {
|
|
channel = channel.channel;
|
|
let _require;
|
|
({ title, description, selected, onSelectDuration } = channel);
|
|
let obj = _require(8174);
|
|
const autoArchiveOptions = obj.getAutoArchiveOptions();
|
|
let hasFlagResult = null != channel && channel.isForumPost();
|
|
if (hasFlagResult) {
|
|
hasFlagResult = channel.hasFlag(ChannelFlags.PINNED);
|
|
}
|
|
_require = hasFlagResult;
|
|
obj = { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null };
|
|
const intl = tmp(1233).intl;
|
|
obj[3] = intl.string(_require(1233).t.H4mGfI);
|
|
obj[4] = onSelectDuration;
|
|
obj[6] = autoArchiveOptions.map((value) => closure_1_3(_undefined(closure_1_1[6]).TableRadioRow, { value: value.value, disabled: _undefined, label: value.label }, value.value));
|
|
return jsx(_require(7704).TableRadioGroup, { value: selected, title, description, accessibilityLabel: null, onChange: null, hasIcons: false, children: null });
|
|
});
|
|
const result = require("set").fileFinishedImporting("modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx");
|
|
|
|
export const AutoArchiveDurationOptions = memoResult;
|