decord/source/modules/summaries/native/SummaryActionSheetButton.tsx
2026-09-02 09:53:35 +00:00

41 lines
2.2 KiB
TypeScript

// Module ID: 11461
// Function ID: 11462
// Name: SummaryActionSheetButton
// Dependencies: [19, 17, 21, 4478, 709, 5076, 1296, 4474, 2]
// Exports: SummaryActionSheetButton
// Module 11461 (SummaryActionSheetButton)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import Button from "Button" /* 1296 */;
import Text from "Text" /* 4474 */;
import PressableBase from "PressableBase" /* 5076 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4478 */;
require = arg1;
noopAll;
({ jsx: c3, jsxs: c4 } = jsxProd);
createCacheKey = { container: { flexDirection: "column", justifyContent: "center", alignItems: "center", paddingVertical: 8, width: 78 }, iconBox: null, icon: null, name: null };
createCacheKey = { borderRadius: ThemesDefault.radii.round, border: 1, overflow: "hidden", alignItems: "center", justifyContent: "center", backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW };
const merged = Object.assign(ThemesDefault.shadows.SHADOW_LOW);
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { margin: 12, tintColor: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT };
createCacheKey[3] = { textAlign: "center", marginTop: 8 };
let closure_5 = createCacheKey.createStyles(createCacheKey);
const obj1 = { margin: 12, tintColor: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT };
const result = require("set").fileFinishedImporting("modules/summaries/native/SummaryActionSheetButton.tsx");
export const SummaryActionSheetButton = function SummaryActionSheetButton(label) {
label = label.label;
({ iconSource, onPress } = label);
const tmp = callback3();
let obj = { style: tmp.container, onPress, accessibilityRole: "button", accessibilityLabel: label, children: null };
obj = { style: items, children: callback(Button.Icon, obj) };
items = [tmp.iconBox];
obj = { style: tmp.icon, source: iconSource };
const items1 = [callback(View, obj), callback(Text.Text, { style: tmp.name, variant: "text-xs/medium", color: "interactive-text-default", lineClamp: 1, children: label })];
obj[4] = items1;
return callback2(PressableBase.PressableOpacity, obj);
};