import { Pressable, Text, StyleSheet, View } from 'react-native'; import { innerBorders, links, texts } from './styles'; import type { ILinkProps } from './types'; export default function Link(props: ILinkProps) { const { children, onPress, style, textStyle, variant = 'primary' } = props; return ( {typeof children === 'string' || typeof (children as string[])?.[0] === 'string' ? ( {children} ) : ( children )} ); }