import React, { Suspense } from "react";
import PageLoadingFallback from "./PageLoadingFallback";

/** Wrap lazy-loaded route screens so each chunk can suspend independently. */
export function LazyRoute({ children }) {
  return <Suspense fallback={<PageLoadingFallback />}>{children}</Suspense>;
}
