import ZxdbExplorer from "./ZxdbExplorer";
import { searchEntries } from "@/server/repo/zxdb";

export const metadata = {
  title: "ZXDB Explorer",
};

export const revalidate = 3600;

export default async function Page() {
  // Server-render initial page (no query) to avoid first client fetch
  const initial = await searchEntries({ page: 1, pageSize: 20, sort: "id_desc" });
  return <ZxdbExplorer initial={initial as any} />;
}
