rsnext/examples/with-i18n-next-intl/components/PageLayout.js
Jan Amann 6eabef68cd
Add next-intl example (#21447)
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?
2021-04-19 19:58:36 +00:00

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>
)
}