decord/source/components_native/common/SlideoutButton.tsx

52 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12730
// Function ID: 12731
2026-07-20 16:05:17 +00:00
// Name: SlideoutButton
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 676, 21, 4380, 4228, 712, 4949, 1297, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 12730 (SlideoutButton)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import Button from "Button" /* 1297 */;
2026-08-25 06:04:03 +00:00
import PressableBase from "PressableBase" /* 4949 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
import hexToRgba from "hexToRgba" /* 4228 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
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-08-24 06:08:38 +00:00
tmp = closure_6();
2026-07-29 08:29:29 +00:00
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 };
2026-08-24 06:08:38 +00:00
obj1 = { color: 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);
2026-08-24 06:08:38 +00:00
obj2 = { style: tmp.buttonText, children: title.toUpperCase() };
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
noopAll;
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" };
2026-08-24 06:08:38 +00:00
createCacheKey[0] = hexToRgba.hexWithOpacity(ThemesDefault.unsafe_rawColors.WHITE, 0.6);
2026-07-29 08:29:29 +00:00
createCacheKey[2] = require("ME").Fonts.PRIMARY_SEMIBOLD;
createCacheKey[1] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
SlideoutButton.width = 72;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/common/SlideoutButton.tsx");
2026-07-20 16:05:17 +00:00
export default SlideoutButton;