import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { ProviderCardProps } from './providerCard.props'; import { getStyles } from './providerCard.styles'; import { useAppTheme } from '@theme'; export const ProviderCard: React.FC = ({ imageUrl, name, rating, deliveryTime, tag, discountText, onPress, }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); return ( {imageUrl || '🍽️'} {name} ⭐ {rating.toFixed(1)} 🕐 {deliveryTime} {tag} {discountText && ( {discountText} )} ); };