2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 6764
|
|
|
|
|
// Function ID: 6765
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: LinkButton
|
2026-08-05 07:35:12 +00:00
|
|
|
// Dependencies: [19, 21, 4255, 4797, 4251, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: LinkButton
|
|
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 6764 (LinkButton)
|
2026-07-29 08:29:29 +00:00
|
|
|
import "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
import jsxProd from "jsxProd";
|
2026-07-29 08:29:29 +00:00
|
|
|
import createCacheKey from "createCacheKey";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let c3;
|
|
|
|
|
let obj1;
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ jsx: obj1, jsxs: c3 } = jsxProd);
|
|
|
|
|
let closure_4 = createCacheKey.createStyles({ defaultContainerStyle: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "center" }, disabledContainerStyle: { opacity: 0.5 } });
|
|
|
|
|
const result = require("createCacheKey").fileFinishedImporting("modules/premium/native/components/LinkButton.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const LinkButton = function LinkButton(textColor) {
|
|
|
|
|
let containerStyle;
|
|
|
|
|
let disabled;
|
|
|
|
|
let onPress;
|
|
|
|
|
let text;
|
|
|
|
|
let textStyle;
|
|
|
|
|
let variant;
|
|
|
|
|
({ disabled, variant } = textColor);
|
|
|
|
|
({ onPress, text, containerStyle, textStyle } = textColor);
|
|
|
|
|
if (variant === undefined) {
|
|
|
|
|
variant = "text-xs/medium";
|
|
|
|
|
}
|
|
|
|
|
let str = textColor.textColor;
|
|
|
|
|
if (str === undefined) {
|
|
|
|
|
str = "text-link";
|
|
|
|
|
}
|
|
|
|
|
const tmp = callback2();
|
|
|
|
|
const items = [tmp.defaultContainerStyle, , ];
|
|
|
|
|
let disabledContainerStyle = disabled;
|
|
|
|
|
if (disabled) {
|
|
|
|
|
disabledContainerStyle = tmp.disabledContainerStyle;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = { style: items, hitSlop: { top: 8, right: 8, bottom: 8 }, accessibilityRole: "button", activeOpacity: 0.2, disabled, onPress, children: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
items[1] = disabledContainerStyle;
|
|
|
|
|
items[2] = containerStyle;
|
2026-08-05 07:35:12 +00:00
|
|
|
const items1 = [callback(require(4251) /* Text */.Text, { style: textStyle, variant, color: str, children: text }), textColor.iconRight];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[6] = items1;
|
2026-08-05 07:35:12 +00:00
|
|
|
return closure_3(require(4797) /* PressableBase */.PressableOpacity, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|