mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
14 lines
302 B
TypeScript
14 lines
302 B
TypeScript
'use client'
|
|
|
|
import { ReactNode } from 'react'
|
|
|
|
const isServer = typeof window === 'undefined'
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html {...(isServer ? { className: 'server-html' } : undefined)}>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|