decord/source/modules/premium/native/components/LinkButton.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

42 lines
1.6 KiB
TypeScript

// Module ID: 7511
// Function ID: 7512
// Name: LinkButton
// Dependencies: [19, 21, 4636, 5204, 4632, 2]
// Exports: LinkButton
// Module 7511 (LinkButton)
import Text_Text from "Text/Text" /* 4632 */;
import Pressables from "Pressables" /* 5204 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsxProd = fn(21);
({ jsx: c2, jsxs: c3 } = jsxProd);
const createStyles = fn(4636);
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");
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();
const items = [tmp.defaultContainerStyle, , ];
let disabledContainerStyle = disabled;
if (disabled) {
disabledContainerStyle = tmp.disabledContainerStyle;
}
const obj = { style: items, hitSlop: { top: 8, right: 8, bottom: 8 }, accessibilityRole: "button", activeOpacity: 0.2, disabled, onPress, children: null };
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);
};