import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { CatalogItemRowProps } from './catalogItemRow.props'; import { getStyles } from './catalogItemRow.styles'; import { useAppTheme } from '@theme'; export const CatalogItemRow: React.FC = ({ imageUrl, title, description, price, quantity, onAdd, onRemove, }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); return ( {imageUrl || '🍕'} {title} {description} ₹{price} {quantity > 0 ? ( <> - {quantity} + ) : ( + )} ); };