1import { getService } from "@/lib/content";
2import { ServiceHero, FaqSection, JsonLd } from "@/components";
3import { serviceSchema } from "@/lib/seo";
4
5export async function generateMetadata({ params }) {
6 const service = await getService(params.slug);
7 return { title: service.seoTitle, description: service.summary };
8}
9
10export default async function ServicePage({ params }) {
11 const service = await getService(params.slug);
12
13 return (
14 <main>
15 <ServiceHero title={service.title} cta="Book an Inspection" />
16 <ServiceSections items={service.sections} />
17 <FaqSection items={service.faqs} />
18 <JsonLd data={serviceSchema(service)} />
19 </main>
20 );
21}