import { format } from "date-fns"; import { Box, HStack, ScrollView, Text, Stack, Heading, Badge } from "native-base"; import PropTypes from 'prop-types'; import React from 'react'; export const ReservasCard = ({ date, startTime, endTime, status}) => { const dateFormated = format(new Date(date), "dd LL yyyy") try { } catch (error) { } return ( {status === 1 ? 'LIBRE' : 'RESERVADO'} Reserva #1 {dateFormated} Hora de inicio: {startTime} Hora de finalizaciĆ³n: {endTime} ) } ReservasCard.propTypes = { date: PropTypes.string.isRequired, startTime: PropTypes.string.isRequired, endTime: PropTypes.string.isRequired, status: PropTypes.string.isRequired }