import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { ProductBlocks } from "../components/ProductBlocks"; import { Footer } from "../components/Footer"; import { getProductBySlug, getCompanySettings } from "../lib/payload"; import { buildProductSchema } from "../lib/structuredData"; const title = "Der Eine. – Für die eine Sache, die gerade zählt."; // der-eine was the reference template the whole PDP block-builder system // was designed to match (gallery sizing, black stepRow-facts icons, // CTA-label pattern — see ProductBlocks.tsx's own comments) — now migrated // onto it itself, same as /tasse-die-pause before it. Testimonials.tsx // dropped entirely rather than migrated: the PDP builder no longer offers // testimonialsRef (removed 2026-08-29, unused everywhere; the planned // replacement is a real reviews feature). Hero.tsx/Focus.tsx/ // Testimonials.tsx/Pricing.tsx/PasstDazu.tsx in ./components are now dead // code, left for a follow-up cleanup pass rather than deleted here — same // as /tasse-die-pause's own old components. export async function generateMetadata(): Promise { const product = await getProductBySlug("stift-kugelschreiber"); const description = product?.descriptionText || undefined; return { title, description, alternates: { canonical: "/der-eine" }, openGraph: { title, description, url: "/der-eine" }, twitter: { title, description }, }; } export default async function DerEinePage() { const [product, seller] = await Promise.all([ getProductBySlug("stift-kugelschreiber"), getCompanySettings(), ]); if (!product) notFound(); const productSchema = buildProductSchema(product, "https://einfach-produktiv.mk360.de/der-eine", seller); return ( <>