2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 7415
|
|
|
|
|
// Function ID: 7416
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: LinkButton
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 21, 4668, 5438, 4739, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: LinkButton
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 7415 (LinkButton)
|
|
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import Text from "Text" /* 4739 */;
|
|
|
|
|
import PressableBase from "PressableBase" /* 5438 */;
|
|
|
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
|
|
|
import createCacheKey from "createCacheKey" /* 4668 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
noopAll;
|
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 } });
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/premium/native/components/LinkButton.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const LinkButton = function LinkButton(textColor) {
|
|
|
|
|
({ 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-24 06:08:38 +00:00
|
|
|
const items1 = [callback(Text.Text, { style: textStyle, variant, color: str, children: text }), textColor.iconRight];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[6] = items1;
|
2026-08-24 06:08:38 +00:00
|
|
|
return closure_3(PressableBase.PressableOpacity, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|