mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
23 lines
378 B
TypeScript
23 lines
378 B
TypeScript
import { Suspense } from 'react'
|
|
|
|
export default function Layout({ children }: any) {
|
|
return (
|
|
<Suspense
|
|
fallback={
|
|
<html>
|
|
<body />
|
|
</html>
|
|
}
|
|
>
|
|
<html
|
|
style={{
|
|
overflowY: 'scroll',
|
|
}}
|
|
>
|
|
<head />
|
|
<body style={{ margin: 0 }}>{children}</body>
|
|
</html>
|
|
</Suspense>
|
|
)
|
|
}
|