import React, { ReactElement } from 'react' import { StyleSheet, Text, View } from 'react-native' import Touchable from 'src/components/Touchable' import Checkmark from 'src/icons/Checkmark' import CircledIcon from 'src/icons/CircledIcon' import GradientIcon from 'src/icons/GradientIcon' import colors from 'src/styles/colors' import { typeScale } from 'src/styles/fonts' import { Spacing } from 'src/styles/styles' type Props = { title: string subtitle: string onPress: () => void icon: ReactElement gradientBackground?: boolean testID: string showCheckmark?: boolean } function SelectRecipientButton({ title, subtitle, onPress, icon, gradientBackground, testID, showCheckmark, }: Props) { return ( {gradientBackground ? ( {icon} ) : ( {icon} )} {showCheckmark && ( )} {title} {subtitle} ) } const styles = StyleSheet.create({ container: { paddingVertical: Spacing.Regular16, paddingHorizontal: Spacing.Regular16, }, icon: { borderWidth: 1, borderColor: colors.borderSecondary, }, subtitle: { ...typeScale.bodySmall, color: colors.contentSecondary, }, title: { ...typeScale.labelMedium, }, body: { flexDirection: 'row', alignItems: 'center', }, textSection: { paddingLeft: Spacing.Small12, flexDirection: 'column', flex: 1, }, checkmark: { position: 'absolute', left: 26, top: 26, backgroundColor: colors.backgroundTertiary, borderRadius: 100, padding: 2, }, }) export default SelectRecipientButton