import type { Metadata } from "next"; import { prisma } from "@/lib/db"; import { InquiryForm } from "@/components/inquiry/InquiryForm"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "Anfrage senden", description: "Senden Sie eine unverbindliche Anfrage für eine unserer Ferienwohnungen.", }; export default async function InquiryPage({ searchParams, }: { searchParams: { wohnung?: string; arrival?: string; departure?: string }; }) { const apartments = await prisma.apartment.findMany({ where: { published: true }, select: { slug: true, name: true }, orderBy: { createdAt: "asc" }, }); return (
Anfrage

Erzählen Sie uns,
wann Sie kommen möchten.

Ein kurzes Formular — den Rest klären wir persönlich. Wir antworten in der Regel innerhalb von 24 Stunden.

); }