"use client";
import { jsx } from "react/jsx-runtime";
import { memo } from "react";
import { Page as BuiltinPage } from "../../runtimes/react/components/page";
import { useRouterLocaleSync } from "../hooks/use-router-locale-sync";
const Page = memo(({ snapshot, metadata, ...extras }) => {
  if ("runtime" in extras) {
    throw new Error(
      `The \`runtime\` prop is no longer supported in the \`@makeswift/runtime\` \`Page\` component as of \`0.15.0\`.
See our docs for more information on what's changed and instructions to migrate: https://docs.makeswift.com/migrations/0.15.0`
    );
  }
  useRouterLocaleSync();
  return /* @__PURE__ */ jsx(BuiltinPage, { snapshot, metadata });
});
export {
  Page
};
//# sourceMappingURL=page.js.map