decord/alpha/source/modules/polls/native/PollDurationActionSheet.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

45 lines
1.9 KiB
TypeScript

// Module ID: 12543
// Function ID: 12544
// Name: PollDurationActionSheet
// Dependencies: [19, 21, 12542, 4536, 4796, 5990, 1115, 5993, 7530, 2]
// Exports: default
// Module 12543 (PollDurationActionSheet)
import AccessibilityAnnouncer2 from "AccessibilityAnnouncer" /* 4536 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4796 */;
import ActionSheet from "ActionSheet" /* 7530 */;
import usePollDurationOptionsDefault from "usePollDurationOptions" /* 12542 */;
import noop from "module_19" /* 19 */;
require = fn;
function PollDurationRadioGroup(onChange) {
onChange = onChange.onChange;
const tmp = usePollDurationOptionsDefault();
importDefault = tmp;
const items = [tmp, onChange];
const callback = noop.useCallback((arg0) => {
onChange(arg0);
const AccessibilityAnnouncer = AccessibilityAnnouncer2.AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(closure_1[arg0]);
ActionSheetActionCreatorsDefault.hideActionSheet();
}, items);
const obj = { title: null, hasIcons: false, onChange: null, defaultValue: null, children: null };
const intl = onChange(1115).intl;
obj.title = intl.string(onChange(1115).t["0ZStp9"]);
obj.onChange = callback;
obj.defaultValue = onChange.selectedDuration;
const entries = Object.entries(tmp);
obj.children = entries.map((item) => {
[tmp, tmp2] = item;
return jsx(onChange(dependencyMap[7]).TableRadioRow, { value: parseInt(tmp), label: tmp2 }, tmp);
});
return jsx(onChange(5990).TableRadioGroup, { title: null, hasIcons: false, onChange: null, defaultValue: null, children: null });
}
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/polls/native/PollDurationActionSheet.tsx");
export default function PollDurationActionSheet(arg0) {
({ selectedDuration, onChange } = arg0);
return jsx(ActionSheet.ActionSheet, { children: <PollDurationRadioGroup selectedDuration={selectedDuration} onChange={onChange} /> });
};