
import PropertiesHome from "@/app/components/properties/PropertiesHome"
import { Metadata } from "next"
import { getTranslations } from "next-intl/server"


interface LayoutProps {
    params: Promise<{ locale: string | any,   slug:string }>
  
}
export async function generateMetadata() : Promise<Metadata> {
    const t = await getTranslations("meta")
    return{
           title: t("properties.title"),
           description: t("properties.description"),
    }
} 
export default async function page({ params }: LayoutProps) {
    const { locale, slug } = await params
  return (
    <PropertiesHome locale={locale} slug={slug === "properties" ? slug : slug.split('%20').join(" ")}/>
    )
}
