decord/source/intl/native/migration.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

47 lines
1.5 KiB
TypeScript

// Module ID: 14212
// Function ID: 14213
// Name: migration
// Dependencies: [19, 21, 4574, 576, 4294, 4268, 4270, 1178, 2]
// Exports: IntlLink
// Module 14212 (migration)
import nativeDefault from "native" /* 576 */;
import LinkingDefault from "Linking" /* 4268 */;
import _modDef4270 from "module_4270" /* 4270 */;
import noop from "module_19" /* 19 */;
const require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4574);
let closure_5 = createStyles.createStyles((arg0) => {
const link = { color: nativeDefault.colors.TEXT_LINK, textDecorationLine: null };
let str = "none";
if (arg0) {
str = "underline";
}
link.textDecorationLine = str;
return { link };
});
const size = fn(2);
const result = size.fileFinishedImporting("intl/native/migration.tsx");
export const IntlLink = function IntlLink(children) {
const target = children.target;
if (typeof target === "string") {
let fn = () => {
const obj = LinkingDefault;
return obj.openURL(_modDef4270.sanitizeUrl(target));
};
} else {
fn = target;
if (typeof target === "object") {
fn = target;
if (null != target.onClick) {
fn = target.onClick;
}
}
}
const tmp = target;
const tmp3 = closure_5(noop.useContext(target(4294).AccessibilityPreferencesContext).alwaysShowLinkDecorations);
return jsx(tmp(1178).LegacyText, { accessible: true, accessibilityRole: "link", onPress: fn, style: closure_5(noop.useContext(target(4294).AccessibilityPreferencesContext).alwaysShowLinkDecorations).link, children: children.children });
};