import React, { FC, PropsWithChildren } from 'react' import { ViewStyle } from 'react-native/Libraries/StyleSheet/StyleSheetTypes' import { TypeScale } from '../theme/Theme/SysTokens' import { Pressable } from 'react-native' import { Typography } from './Typography' import { useTheme } from '../theme/context/ThemeContext' import { rgba } from '../color' export const TextLink: FC = (props) => { const { ds, resolve } = useTheme() const typeScale = props.typeScale ?? ds.sys.typeScale.bodyMedium return ( {({ pressed }) => ( {props.children} )} ) } interface Props extends PropsWithChildren { typeScale?: TypeScale onPress?: () => void style?: ViewStyle }