import Image from "next/image"; import Link from "next/link"; import type { Apartment } from "@/types"; import { formatPrice } from "@/lib/utils"; export function ApartmentPreview({ apartments, }: { apartments: Apartment[]; }) { return (
Unsere Wohnungen

Zwei Orte, an die man
{" "} gerne zurückkehrt.

Jedes Haus hat seine eigene Geschichte — wählen Sie, was für Ihre nächste Auszeit passt.

{apartments.map((apt, i) => { const isEven = i % 2 === 0; const hasPlatforms = apt.airbnbUrl || apt.bookingUrl; return (
{apt.name}
0{i + 1}
{apt.tagline}

{apt.name}

{apt.shortDescription}

Gäste
bis {apt.maxGuests}
Größe
{apt.sizeSqm} m²
ab / Nacht
{formatPrice(apt.priceFrom)}
Wohnung ansehen Direkt anfragen
{hasPlatforms && (
Auch auf {apt.airbnbUrl && ( Airbnb )} {apt.airbnbUrl && apt.bookingUrl && ·} {apt.bookingUrl && ( Booking.com )}
)}
); })}
); }