import { Pressable, View } from 'react-native'; import { Icon } from '../../atoms/Icon'; import { Text } from '../../atoms/Text'; import type { TechnicalSheet as TechnicalSheetType } from './TechnicalSheet.types'; interface TechnicalSheetProps { technicalSheet: TechnicalSheetType; isExpanded: boolean; onToggle: () => void; } interface RowProps { label: string; value: string | number | undefined; } function Row({ label, value }: RowProps) { return ( {label} {value ?? '—'} ); } export function TechnicalSheet({ technicalSheet, isExpanded, onToggle }: TechnicalSheetProps) { return ( Ficha tecnica {isExpanded ? ( {technicalSheet.bedSize ? ( <> Tamaño de la cama ) : null} {technicalSheet.coordinates ? ( <> Coordenadas ) : null} ) : null} ); }