import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { useAppTheme } from '@theme'; import { getStyles } from './chipSelector.styles'; interface Option { label: string; value: string; } interface ChipSelectorProps { options: Option[]; selected: string; onChange: (value: any) => void; } export const ChipSelector: React.FC = ({ options, selected, onChange, }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); return ( {options.map((option) => { const isActive = option.value === selected; return ( onChange(option.value)} > {option.label} ); })} ); }; export default ChipSelector;