import FeedbackPageClient from "./FeedbackPageClient";
import { getBackgroundImage } from "@/lib/preferences";

export const dynamic = "force-dynamic";

interface FeedbackPageProps {
  params: Promise<{
    eventId: string;
  }>;
}

export default async function FeedbackPage({ params }: FeedbackPageProps) {
  await params; // Ensure params are resolved (Next.js 15 requirement)
  const backgroundImage = await getBackgroundImage("home", "/got-2.jpg");

  return <FeedbackPageClient backgroundImage={backgroundImage} />;
}
