import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteError, } from "@remix-run/react" import { SDKLoadingError } from "./hooks/useApp" export function Layout({ children }: { children: React.ReactNode }) { return ( {children} ) } export default function App() { return } export function HydrateFallback() { return

Loading...

} export function ErrorBoundary() { const error = useRouteError() console.error(error) return ( Oh no! {error instanceof SDKLoadingError ? (

Unable to load Contentstack SDK

Make sure you have proper configuration in Contentstack.

) : (

Something went wrong

Check the console for the error.

)} ) }