Files
cruiseLovers/assets/components/reserva/FieldBox.tsx

19 lines
429 B
TypeScript

import styles from '@/styles/screens/reserva/detail.styles';
import { Text, View } from 'react-native';
type Props = {
label: string;
value?: string | null;
};
export function FieldBox({ label, value }: Props) {
return (
<View>
<Text style={styles.fieldLabel}>{label}</Text>
<View style={styles.fieldBox}>
<Text style={styles.fieldBoxText}>{value || '---'}</Text>
</View>
</View>
);
}