decord/source/components_native/common/SlideoutButton.tsx

52 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 10460
// Function ID: 10461
2026-07-20 16:05:17 +00:00
// Name: SlideoutButton
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 676, 21, 4661, 4223, 712, 5433, 1297, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 10460 (SlideoutButton)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
import hexToRgba from "hexToRgba";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
class SlideoutButton {
constructor(arg0) {
({ title, height } = global);
({ onPress, color, IconComponent } = global);
if (height === undefined) {
height = 60;
}
2026-07-29 08:29:29 +00:00
tmp = jsxs();
obj = { accessibilityRole: "button", onPress, children: null };
obj = { style: items, children: null };
2026-07-20 16:05:17 +00:00
items = [, ];
items[0] = tmp.button;
2026-07-29 08:29:29 +00:00
items[1] = { backgroundColor: color, width: 72, height };
obj1 = { color: null };
obj1[0] = require("Themes").colors.WHITE;
2026-07-20 16:05:17 +00:00
items1 = [, ];
2026-07-29 08:29:29 +00:00
items1[0] = jsx(IconComponent, obj1);
obj2 = { style: tmp.buttonText, children: null };
obj2[1] = title.toUpperCase();
items1[1] = jsx(require("Button").LegacyText, obj2);
obj[1] = items1;
obj[2] = jsxs(View, obj);
2026-07-23 10:11:24 +00:00
return jsx(require("PressableBase").PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { button: { alignSelf: "flex-end", justifyContent: "center", alignItems: "center" }, buttonText: null };
createCacheKey = { color: null, fontSize: 12, fontFamily: null, marginTop: 2, marginHorizontal: 2, textAlign: "center" };
createCacheKey[0] = hexToRgba.hexWithOpacity(require("Themes").unsafe_rawColors.WHITE, 0.6);
createCacheKey[2] = require("ME").Fonts.PRIMARY_SEMIBOLD;
createCacheKey[1] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
SlideoutButton.width = 72;
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("components_native/common/SlideoutButton.tsx");
2026-07-20 16:05:17 +00:00
export default SlideoutButton;