decord/source/modules/premium/native/components/LinkButton.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

42 lines
1.6 KiB
TypeScript

// Module ID: 7460
// Function ID: 7461
// Name: LinkButton
// Dependencies: [19, 21, 4605, 5173, 4601, 2]
// Exports: LinkButton
// Module 7460 (LinkButton)
import Text_Text from "Text/Text" /* 4601 */;
import Pressables from "Pressables" /* 5173 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsxProd = fn(21);
({ jsx: c2, jsxs: c3 } = jsxProd);
const createStyles = fn(4605);
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);
};