decord/stable/source/components_native/common/SlideoutButton.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

52 lines
1.9 KiB
TypeScript

// Module ID: 11395
// Function ID: 11396
// Name: SlideoutButton
// Dependencies: [19, 17, 1074, 21, 4636, 4486, 576, 5204, 1176, 2]
// Module 11395 (SlideoutButton)
import nativeDefault from "native" /* 576 */;
import native from "native" /* 1176 */;
import Pressables from "Pressables" /* 5204 */;
import noop from "module_19" /* 19 */;
require = fn;
class SlideoutButton {
constructor(arg0) {
({ title, height } = global);
({ onPress, color, IconComponent } = global);
if (height === undefined) {
height = 60;
}
tmp = closure_6();
obj = { accessibilityRole: "button", onPress, children: null };
obj1 = { style: null, children: null };
items = [, ];
items[0] = tmp.button;
items[1] = { backgroundColor: color, width: 72, height };
obj1.style = items;
obj5 = { color: closure_1(closure_2[6]).colors.WHITE };
items1 = [, ];
items1[0] = jsx(IconComponent, obj5);
obj6 = { style: tmp.buttonText, children: title.toUpperCase() };
items1[1] = jsx(closure_0(closure_2[8]).LegacyText, obj6);
obj1.children = items1;
obj.children = jsxs(View, obj1);
return jsx(closure_0(closure_2[7]).PressableOpacity, obj);
}
}
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
const createStyles = fn(4636);
let obj2 = { button: { alignSelf: "flex-end", justifyContent: "center", alignItems: "center" }, buttonText: null };
let obj3 = { color: null, fontSize: 12, fontFamily: null, marginTop: 2, marginHorizontal: 2, textAlign: "center" };
const ColorUtils = fn(4486);
obj3.color = ColorUtils.hexWithOpacity(nativeDefault.unsafe_rawColors.WHITE, 0.6);
obj3.fontFamily = fn(1074).Fonts.PRIMARY_SEMIBOLD;
obj2.buttonText = obj3;
const timestampProducer = createStyles.createStyles(obj2);
SlideoutButton.width = 72;
const size = fn(2);
const result = size.fileFinishedImporting("components_native/common/SlideoutButton.tsx");
export default SlideoutButton;