decord/source/modules/custom_status/native/ClearAfterOptionsActionSheet.tsx
2026-08-27 16:17:25 +00:00

62 lines
2.8 KiB
TypeScript

// Module ID: 9142
// Function ID: 9143
// Name: ClearAfterOptionsActionSheet
// Dependencies: [32, 19, 17, 9013, 21, 4445, 712, 5574, 5573, 1236, 7625, 7626, 9143, 4880, 4412, 2]
// Exports: default
// Module 9142 (ClearAfterOptionsActionSheet)
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Button from "Button" /* 4880 */;
import RedesignBottomSheetTitleHeaderBase from "RedesignBottomSheetTitleHeaderBase" /* 5573 */;
import Background from "Background" /* 5574 */;
import context from "context" /* 7625 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { ClearAfterOptions } from "StatusTypes" /* 9013 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4445 */;
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(7626).TableRadioRow, { value, label: callback2(9143)(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);
};