import { Modal, Pressable, ScrollView, View } from 'react-native';
import { IconButton } from '../../atoms/IconButton';
import { Text } from '../../atoms/Text';
import type { TechnicalSheet as TechnicalSheetType } from './TechnicalSheet.types';
interface TechnicalSheetDrawerProps {
technicalSheet: TechnicalSheetType | null;
visible: boolean;
onClose: () => void;
}
interface RowProps {
label: string;
value: string | number | undefined;
}
function Row({ label, value }: RowProps) {
return (
{label}
{value ?? '—'}
);
}
export function TechnicalSheetDrawer({
technicalSheet,
visible,
onClose,
}: TechnicalSheetDrawerProps) {
if (!technicalSheet) {
return null;
}
return (
Ficha técnica
{technicalSheet.bedSize ? (
<>
Tamaño de la cama
>
) : null}
{technicalSheet.coordinates ? (
<>
Coordenadas
>
) : null}
);
}