import type { ReactNode } from "react"; import Link from "next/link"; import { ChevronDown } from "lucide-react"; import Nav from "@/components/nav"; import Footer from "@/components/footer"; import RelatedTools from "@/components/related-tools"; import RelatedGuides from "@/components/related-guides"; export type FaqItem = { q: string; a: string; }; type SubpageLayoutProps = { toolSlug: string; toolName: string; h1Title: string; introText: string; steps: string[]; examples: string[]; vorteileText: ReactNode; additionalContent?: ReactNode; faqs: FaqItem[]; updatedDate: string; children: ReactNode; }; export default function SubpageLayout({ toolSlug, toolName, h1Title, introText, steps, examples, vorteileText, additionalContent, faqs, updatedDate, children, }: SubpageLayoutProps) { const howItWorksName = toolSlug === "muenze-werfen" ? "der Münzwurf" : toolName; return ( <>