import { Pressable } from 'react-native'; import { Icon } from '../../atoms/Icon'; import { Text } from '../../atoms/Text'; import { cn } from '../../lib/cn'; import type { SelectOption } from './Select.types'; interface SelectOptionRowProps { option: SelectOption; isSelected: boolean; onPress: (option: SelectOption) => void; } export function SelectOptionRow({ option, isSelected, onPress, }: SelectOptionRowProps) { return ( onPress(option)} disabled={option.disabled} className={cn( 'flex-row items-center justify-between gap-2 px-3 py-3', isSelected && 'bg-primary-50', option.disabled && 'opacity-50', )} > {option.label} {isSelected ? : null} ); }