decord/alpha/source/modules/polls/native/PollDurationActionSheet.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

45 lines
1.9 KiB
TypeScript

// Module ID: 12534
// Function ID: 12535
// Name: PollDurationActionSheet
// Dependencies: [19, 21, 12533, 4534, 4794, 5988, 1115, 5991, 7528, 2]
// Exports: default
// Module 12534 (PollDurationActionSheet)
import AccessibilityAnnouncer2 from "AccessibilityAnnouncer" /* 4534 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4794 */;
import ActionSheet from "ActionSheet" /* 7528 */;
import usePollDurationOptionsDefault from "usePollDurationOptions" /* 12533 */;
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(5988).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} /> });
};