decord/source/modules/custom_status/native/ClearAfterOptionsActionSheet.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

62 lines
2.8 KiB
TypeScript

// Module ID: 11206
// Function ID: 11207
// Name: ClearAfterOptionsActionSheet
// Dependencies: [32, 19, 17, 11120, 21, 4560, 576, 7150, 7149, 1114, 5685, 5688, 11207, 4975, 4527, 2]
// Exports: default
// Module 11206 (ClearAfterOptionsActionSheet)
import ThemesDefault from "Themes" /* 576 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import Button from "Button" /* 4975 */;
import context from "context" /* 5685 */;
import RedesignBottomSheetTitleHeaderBase from "RedesignBottomSheetTitleHeaderBase" /* 7149 */;
import Background from "Background" /* 7150 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { ClearAfterOptions } from "StatusTypes" /* 11120 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
require = arg1;
({ jsx: error, jsxs: closure_8 } = jsxProd);
createCacheKey = { content: null, buttonWrapper: null };
createCacheKey = { paddingHorizontal: ThemesDefault.space.PX_16 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginTop: ThemesDefault.space.PX_24, paddingBottom: ThemesDefault.space.PX_16 };
let closure_9 = createCacheKey.createStyles(createCacheKey);
let obj1 = { marginTop: ThemesDefault.space.PX_24, paddingBottom: ThemesDefault.space.PX_16 };
const result = require("set").fileFinishedImporting("modules/custom_status/native/ClearAfterOptionsActionSheet.tsx");
export default function ClearAfterOptionsActionSheet(arg0) {
({ initialValue, onChange: require } = arg0);
closure_1 = undefined;
const tmp = callback4();
const tmp2 = callback(React.useState(initialValue), 2);
closure_1 = tmp2[0];
let obj = { contentStyles: tmp.content, header: null, children: null };
obj = { title: null };
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t["5XnRQ+"]);
obj[1] = callback2(RedesignBottomSheetTitleHeaderBase.BottomSheetTitleHeader, obj);
obj = { onChange: tmp2[1], title: null, defaultValue: null, hasIcons: false, children: null };
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t.E45wvP);
obj[2] = initialValue;
obj[4] = ClearAfterOptions.map((value) => callback3(callback(5688).TableRadioRow, { value, label: callback2(11207)(value) }, value));
const items = [callback2(context.TableRadioGroup, obj), ];
obj1 = { style: tmp.buttonWrapper, children: null };
const obj2 = {
onPress() {
callback(callback2);
callback2(closure_1_2[14]).hideActionSheet();
},
text: null
};
const intl3 = getSystemLocale.intl;
obj2[1] = intl3.string(getSystemLocale.t.TyCVIq);
obj1[1] = callback2(Button.Button, obj2);
items[1] = callback2(View, obj1);
obj[2] = items;
return callback3(Background.BottomSheet, obj);
};