decord/source/intl/native/migration.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

44 lines
1.5 KiB
TypeScript

// Module ID: 14184
// Function ID: 14185
// Name: IntlLink
// Dependencies: [19, 21, 4560, 576, 4279, 4255, 4257, 1178, 2]
// Exports: IntlLink
// Module 14184 (IntlLink)
import ThemesDefault from "Themes" /* 576 */;
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const require = arg1;
let closure_5 = createCacheKey.createStyles((arg0) => {
const link = { color: ThemesDefault.colors.TEXT_LINK, textDecorationLine: null };
let str = "none";
if (arg0) {
str = "underline";
}
link[1] = str;
return { link };
});
const result = require("set").fileFinishedImporting("intl/native/migration.tsx");
export const IntlLink = function IntlLink(children) {
const target = children.target;
if (typeof target === "string") {
let fn = () => {
const obj = closure_1_1(closure_1_2[5]);
return obj.openURL(closure_1_1(closure_1_2[6]).sanitizeUrl(target));
};
} else {
fn = target;
if (typeof target === "object") {
fn = target;
if (null != target.onClick) {
fn = target.onClick;
}
}
}
const tmp = target;
const tmp3 = callback(React.useContext(target(4279).AccessibilityPreferencesContext).alwaysShowLinkDecorations);
return jsx(tmp(1178).LegacyText, { accessible: true, accessibilityRole: "link", onPress: fn, style: callback(React.useContext(target(4279).AccessibilityPreferencesContext).alwaysShowLinkDecorations).link, children: children.children });
};