import React from "react"; import { Text, View, StyleSheet, ViewStyle, StyleProp, TouchableOpacity } from "react-native"; type Option = { label: string; }; interface SingleSelectButtonGroupProps { options: Option[]; onSelectionChange: (value: string) => void; extendedStyle?: StyleProp; shouldShowRedOutline: boolean; selectedOption: string | null | undefined; } const SingleSelectButtonGroup: React.FC = ({ options, onSelectionChange, extendedStyle, shouldShowRedOutline, selectedOption, }) => { return ( {options.map((option, index) => ( onSelectionChange(option.label)} > {option.label} ))} ); }; const styles = StyleSheet.create({ button: { maxWidth: "100%", padding: 20, marginBottom: 10, borderWidth: 1, justifyContent: "space-between", alignItems: "center", flexDirection: "row", borderRadius: 12, borderColor: "#bbbbbb", }, circle: { width: 10, height: 10, borderRadius: 5, backgroundColor: "#e8e8e8", borderWidth: 1, borderColor: "#bbbbbb", }, selectedButton: { borderWidth: 1, borderColor: "#949494", }, selectedCircle: { backgroundColor: "#949494", }, redOutline: { borderWidth: 1, borderColor: "red", }, }); export default SingleSelectButtonGroup;