File size: 335 Bytes
b91e262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import { Suspense } from 'react'
import { Nav } from '../components/nav'
export default function Root({ children }: { children: React.ReactNode }) {
return (
<html>
<body>
<Nav />
<main>
<Suspense fallback={<p>Loading...</p>}>{children}</Suspense>
</main>
</body>
</html>
)
}
|