decord/stable/source/modules/summaries/native/SummaryActionSheetButton.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

40 lines
2.2 KiB
TypeScript

// Module ID: 11788
// Function ID: 11789
// Name: SummaryActionSheetButton
// Dependencies: [19, 17, 21, 4636, 576, 5204, 1176, 4632, 2]
// Exports: SummaryActionSheetButton
// Module 11788 (SummaryActionSheetButton)
import nativeDefault from "native" /* 576 */;
import native from "native" /* 1176 */;
import Text_Text from "Text/Text" /* 4632 */;
import Pressables from "Pressables" /* 5204 */;
import noop from "module_19" /* 19 */;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const createStyles = fn(4636);
let obj2 = { container: { flexDirection: "column", justifyContent: "center", alignItems: "center", paddingVertical: 8, width: 78 }, iconBox: null, icon: null, name: null };
const merged = Object.assign(nativeDefault.shadows.SHADOW_LOW);
obj2.iconBox = { borderRadius: nativeDefault.radii.round, border: 1, overflow: "hidden", alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
const obj3 = { borderRadius: nativeDefault.radii.round, border: 1, overflow: "hidden", alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
obj2.icon = { margin: 12, tintColor: nativeDefault.colors.INTERACTIVE_TEXT_DEFAULT };
obj2.name = { textAlign: "center", marginTop: 8 };
let closure_5 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/summaries/native/SummaryActionSheetButton.tsx");
export const SummaryActionSheetButton = function SummaryActionSheetButton(label) {
label = label.label;
({ iconSource, onPress } = label);
const tmp = closure_5();
const obj = { style: tmp.container, onPress, accessibilityRole: "button", accessibilityLabel: label, children: null };
const obj2 = { style: null, children: React3(native.Icon, { style: tmp.icon, source: iconSource }) };
const items = [tmp.iconBox];
obj2.style = items;
const items1 = [React3(View, obj2), React3(Text_Text.Text, { style: tmp.name, variant: "text-xs/medium", color: "interactive-text-default", lineClamp: 1, children: label })];
obj.children = items1;
return React4(Pressables.PressableOpacity, obj);
};