import { Link } from "expo-router" import * as WebBrowser from "expo-web-browser" import { Platform } from "react-native" type LinkProps = React.ComponentProps export const ExternalLink: React.FC< Omit & { href: string } > = (props) => { const { href, ...rest } = props return ( { if (Platform.OS !== "web") { event.preventDefault() await WebBrowser.openBrowserAsync(href) } }} /> ) }