import { cloneElement, type ReactElement } from 'react' import { Linking } from 'react-native' import { isWeb } from '@junwon/aesthetics' interface LinkProps { href: string children: ReactElement } export function Link({ href, children }: LinkProps) { if (isWeb) { return ( {children} ) } return cloneElement(children, { onPress: () => Linking.openURL(href), }) }