import React from 'react' import { StyleProp, StyleSheet, Text, TextStyle, ViewStyle } from 'react-native' import Touchable from 'src/components/Touchable' import InfoIcon from 'src/icons/InfoIcon' import Colors from 'src/styles/colors' import { typeScale } from 'src/styles/fonts' import { Spacing } from 'src/styles/styles' export function LabelWithInfo({ label, onPress, labelStyle, iconSize = 16, testID, style, }: { label: string onPress?: () => void labelStyle?: StyleProp iconSize?: number testID?: string style?: StyleProp }) { return ( <> {label} {onPress && } ) } const styles = StyleSheet.create({ touchable: { flex: 1, flexDirection: 'row', gap: Spacing.Tiny4, alignItems: 'center', paddingRight: 20, // Prevents Icon from being cut off on long labels minWidth: '25%', color: Colors.contentSecondary, }, labelText: { ...typeScale.bodyMedium, flexWrap: 'wrap', textAlign: 'left', }, })