decord/stable/source/modules/polls/native/PollDurationActionSheet.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

45 lines
1.9 KiB
TypeScript

// Module ID: 12483
// Function ID: 12484
// Name: PollDurationActionSheet
// Dependencies: [19, 21, 12482, 4499, 4755, 5934, 1115, 5937, 7474, 2]
// Exports: default
// Module 12483 (PollDurationActionSheet)
import AccessibilityAnnouncer2 from "AccessibilityAnnouncer" /* 4499 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4755 */;
import ActionSheet from "ActionSheet" /* 7474 */;
import usePollDurationOptionsDefault from "usePollDurationOptions" /* 12482 */;
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(5934).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} /> });
};