41 lines
2.1 KiB
TypeScript
41 lines
2.1 KiB
TypeScript
// Module ID: 10931
|
|
// Function ID: 10932
|
|
// Name: SummaryActionSheetButton
|
|
// Dependencies: [19, 17, 21, 4189, 712, 4717, 1297, 4185, 2]
|
|
// Exports: SummaryActionSheetButton
|
|
|
|
// Module 10931 (SummaryActionSheetButton)
|
|
import "noop";
|
|
import { View } from "get ActivityIndicator";
|
|
import jsxProd from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
let c3;
|
|
let c4;
|
|
const require = arg1;
|
|
({ 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: require("Themes").radii.round, border: 1, overflow: "hidden", alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW };
|
|
const merged = Object.assign(require("Themes").shadows.SHADOW_LOW);
|
|
createCacheKey[1] = createCacheKey;
|
|
createCacheKey[2] = { margin: 12, tintColor: require("Themes").colors.INTERACTIVE_TEXT_DEFAULT };
|
|
createCacheKey[3] = { textAlign: "center", marginTop: 8 };
|
|
createCacheKey = createCacheKey.createStyles(createCacheKey);
|
|
const obj1 = { margin: 12, tintColor: require("Themes").colors.INTERACTIVE_TEXT_DEFAULT };
|
|
const result = require("jsxProd").fileFinishedImporting("modules/summaries/native/SummaryActionSheetButton.tsx");
|
|
|
|
export const SummaryActionSheetButton = function SummaryActionSheetButton(label) {
|
|
let iconSource;
|
|
let onPress;
|
|
label = label.label;
|
|
({ iconSource, onPress } = label);
|
|
const tmp = createCacheKey();
|
|
let obj = { style: tmp.container, onPress, accessibilityRole: "button", accessibilityLabel: label, children: null };
|
|
obj = { style: items, children: null };
|
|
items = [tmp.iconBox];
|
|
obj = { style: tmp.icon, source: iconSource };
|
|
obj[1] = callback(require(1297) /* Button */.Icon, obj);
|
|
const items1 = [callback(View, obj), callback(require(4185) /* Text */.Text, { style: tmp.name, variant: "text-xs/medium", color: "interactive-text-default", lineClamp: 1, children: label })];
|
|
obj[4] = items1;
|
|
return callback2(require(4717) /* PressableBase */.PressableOpacity, obj);
|
|
};
|