import { colors } from '@/assets/styles/colors'; import styles from '@/styles/screens/reserva/detail.styles'; import { FontAwesome } from '@expo/vector-icons'; import { View } from 'react-native'; type Props = { stars: string | number; }; export function Stars({ stars }: Props) { const count = Math.max(0, Math.min(5, parseInt(String(stars || '0'), 10))); if (!count) return null; return ( {Array.from({ length: count }).map((_, i) => ( ))} ); }