import { useTranslations } from "next-intl"; import { getTranslations } from "next-intl/server"; import { houses } from "@/src/config/apartments"; import { Hero } from "@/components/ui/Hero"; import { HouseCard } from "@/components/ui/HouseCard"; import { BookingBanner } from "@/components/ui/BookingBanner"; import { Impressions } from "@/components/ui/Impressions"; import { ArrowRight, MapPin, Shield, Clock, Wind, Home, CreditCard } from "lucide-react"; import Link from "next/link"; export async function generateMetadata({ params: { locale }, }: { params: { locale: string }; }) { const t = await getTranslations({ locale, namespace: "metadata" }); return { title: t("title"), description: t("description"), }; } export default function HomePage({ params: { locale }, }: { params: { locale: string }; }) { const t = useTranslations("home"); const features = [ { icon: Clock, text: t("features.longStay"), }, { icon: MapPin, text: t("features.location"), }, { icon: Wind, text: t("features.airConditioning"), }, { icon: Home, text: t("features.furnished"), }, { icon: CreditCard, text: t("features.payment"), }, ]; return (

{t("houses.subtitle")}

{t("houses.title")}

{houses.map((house) => ( ))}

{t("features.title")}

{t("features.title")}

{features.map((feature, index) => { const Icon = feature.icon; return (

{feature.text}

); })}

{t("ctaSection.title")}

{t("ctaSection.description")}

{t("ctaSection.cta")}
); }