6eabef68cd
I've recently built an i18n library that is tailored to usage in Next.js: [next-intl](https://github.com/amannn/next-intl). It complements the internationalized routing capabilities of Next.js by managing translations and providing them to components, as well as handling date and time formatting. It's a bit young, but I'm using it in two production apps now and I'm quite confident in the library. Would you want to include an example and link to it?
19 lines
371 B
JavaScript
19 lines
371 B
JavaScript
import Navigation from './Navigation'
|
|
|
|
export default function PageLayout({ children, title }) {
|
|
return (
|
|
<div
|
|
style={{
|
|
padding: 24,
|
|
fontFamily: 'system-ui, sans-serif',
|
|
lineHeight: 1.5,
|
|
}}
|
|
>
|
|
<Navigation />
|
|
<div style={{ maxWidth: 510 }}>
|
|
<h1>{title}</h1>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|