a856097402
Hello everyone! I would like to add the example using [Kentico Kontent](https://kontent.ai) as a data source for your example. I have tried to be consistent with the other examples and showcase the preview as well. I have tried to keep up with [Contribution guidelines](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples). Thank you.
16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
import Alert from '../components/alert'
|
|
import Footer from '../components/footer'
|
|
import Meta from '../components/meta'
|
|
|
|
export default function Layout({ preview, children }) {
|
|
return (
|
|
<>
|
|
<Meta />
|
|
<div className="min-h-screen">
|
|
<Alert preview={preview} />
|
|
<main>{children}</main>
|
|
</div>
|
|
<Footer />
|
|
</>
|
|
)
|
|
}
|