import { servicesConfig } from "@/config/services"
import { ServiceDetailPageClient } from "./ServiceDetailPageClient"

interface ServiceDetailPageProps {
  params: {
    slug: string
  }
}

export async function generateStaticParams() {
  return servicesConfig.map((service) => ({
    slug: service.id,
  }))
}

export default function ServiceDetailPage({ params }: ServiceDetailPageProps) {
  return <ServiceDetailPageClient params={params} />
}
