decord/source/6385_HeaderButton.js

34 lines
1.6 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6385
// Function ID: 6386
2026-08-06 08:05:19 +00:00
// Name: HeaderButton
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 6368]
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
// Module 6385 (HeaderButton)
import noopAll from "noop" /* 19 */;
import Animated from "Animated" /* 6368 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-08-06 08:05:19 +00:00
({ StyleSheet, Platform } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
const forwardRefResult = noopAll.forwardRef(function HeaderButtonInternal(disabled, ref) {
2026-08-06 08:05:19 +00:00
disabled = disabled.disabled;
({ onPress, pressColor, pressOpacity, accessibilityLabel, testID, style, href, children } = disabled);
obj = { ref, disabled, href, "aria-label": accessibilityLabel, testID, onPress, pressColor, pressOpacity, android_ripple: obj, style: null, hitSlop: null, children: null };
const items = [closure_4.container, , ];
if (disabled) {
disabled = closure_4.disabled;
}
items[1] = disabled;
items[2] = style;
obj[9] = items;
obj[10] = { top: 16, right: 16, bottom: 16, left: 16 };
obj[11] = children;
2026-08-24 06:08:38 +00:00
return jsx(Animated.PlatformPressable, { ref, disabled, href, "aria-label": accessibilityLabel, testID, onPress, pressColor, pressOpacity, android_ripple: obj, style: null, hitSlop: null, children: null });
2026-08-06 08:05:19 +00:00
});
forwardRefResult.displayName = "HeaderButton";
let obj = { borderless: true, foreground: Platform.Version >= 23, radius: 20 };
const styles = StyleSheet.create({ container: { flexDirection: "row", alignItems: "center", paddingHorizontal: 8, borderRadius: 10, borderCurve: "continuous" }, disabled: { opacity: 0.5 } });
export const HeaderButton = forwardRefResult;