import * as React from 'react' import { StyleSheet, Text, View } from 'react-native' import Touchable from 'src/components/Touchable' import RadioButton from 'src/icons/RadioButton' import colors from 'src/styles/colors' import { typeScale } from 'src/styles/fonts' interface Props { text: string isSelected: boolean onSelect: (word: string, data: any) => void hideCheckboxes?: boolean data?: any testID?: string } export default function SelectionOption({ text, isSelected, data, onSelect, testID, hideCheckboxes, }: Props) { function onPress() { onSelect(text, data) } return ( {!hideCheckboxes && ( )} {text} ) } const styles = StyleSheet.create({ contentContainer: { flexDirection: 'row', alignItems: 'center', marginHorizontal: 16, paddingVertical: 14, borderBottomWidth: 1, borderColor: colors.borderPrimary, }, text: { ...typeScale.bodyMedium, flex: 1, marginRight: 16, }, iconContainer: { marginRight: 16, }, })