decord/source/modules/premium/native/components/LinkButton.tsx

43 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 7482
// Function ID: 7483
2026-07-20 16:05:17 +00:00
// Name: LinkButton
// Dependencies: [19, 21, 4607, 5175, 4603, 2]
2026-07-20 16:05:17 +00:00
// Exports: LinkButton
// Module 7482 (LinkButton)
import Text_Text from "Text/Text" /* 4603 */;
import Pressables from "Pressables" /* 5175 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const jsxProd = fn(21);
({ jsx: c2, jsxs: c3 } = jsxProd);
const createStyles = fn(4607);
let closure_4 = createStyles.createStyles({ defaultContainerStyle: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "center" }, disabledContainerStyle: { opacity: 0.5 } });
const size = fn(2);
const result = size.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 = closure_4();
2026-07-20 16:05:17 +00:00
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;
const items1 = [React2(Text_Text.Text, { style: textStyle, variant, color: str, children: text }), textColor.iconRight];
obj.children = items1;
return React3(Pressables.PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
};