// 不要写 "use client"
import { Suspense } from "react";
import SearchClient from "./SearchClient";

export default function Page({ searchParams }: { searchParams: { q?: string } }) {
  const q = typeof searchParams.q === "string" ? searchParams.q : "";
  return (
    <Suspense fallback={<div className="p-6 text-zinc-400">Loading…</div>}>
      <SearchClient initialQuery={q} />
    </Suspense>
  );
}
