Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
// Module ID: 7515
|
|
// Function ID: 7516
|
|
// Name: LinkButton
|
|
// Dependencies: [19, 21, 4639, 5207, 4635, 2]
|
|
// Exports: LinkButton
|
|
|
|
// Module 7515 (LinkButton)
|
|
import Text_Text from "Text/Text" /* 4635 */;
|
|
import Pressables from "Pressables" /* 5207 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsxProd = fn(21);
|
|
({ jsx: c2, jsxs: c3 } = jsxProd);
|
|
const createStyles = fn(4639);
|
|
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);
|
|
};
|