decord/alpha/source/modules/polls/native/PollDurationActionSheet.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

45 lines
1.9 KiB
TypeScript

// Module ID: 11669
// Function ID: 11670
// Name: PollDurationActionSheet
// Dependencies: [19, 21, 11668, 4538, 4796, 5992, 1115, 5995, 6613, 2]
// Exports: default
// Module 11669 (PollDurationActionSheet)
import AccessibilityAnnouncer2 from "AccessibilityAnnouncer" /* 4538 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4796 */;
import ActionSheet from "ActionSheet" /* 6613 */;
import usePollDurationOptionsDefault from "usePollDurationOptions" /* 11668 */;
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(5992).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} /> });
};