import { motion } from "framer-motion"; import { HOTEL_ROOMS } from "@/data/event-data"; import { Button } from "@/components/ui/button"; import { BedDouble, ExternalLink } from "lucide-react"; import { useTranslation } from "react-i18next"; const HotelSection = () => { const { t } = useTranslation(); const roomTypeKeyById: Record = { "1": "individual", "2": "double", "3": "suite", }; return (

{t("hotel.title")}

{t("hotel.subtitle")}

{HOTEL_ROOMS.map((room, i) => { const typeKey = roomTypeKeyById[room.id]; const translatedName = typeKey ? t(`hotel.${typeKey}`) : room.name; const translatedPrice = room.price?.includes("[") ? t("hotel.pricePerNight") : room.price; const translatedDescription = room.description?.includes("[") ? t("hotel.description") : room.description; return ( {/* Imagen */}
{room.image ? ( {translatedName} ) : ( )}

{translatedName}

{translatedPrice}

{translatedDescription}

); })}
); }; export default HotelSection;