ccbc9b868a
This is an example of how to integrate [Sitefinity CMS ](https://www.progress.com/sitefinity-cms)with next.js Co-authored-by: Balázs Orbán <info@balazsorban.com>
23 lines
407 B
TypeScript
23 lines
407 B
TypeScript
import Alert from './alert'
|
|
import Footer from './footer'
|
|
import Meta from './meta'
|
|
|
|
type Props = {
|
|
preview?: boolean
|
|
children: React.ReactNode
|
|
}
|
|
|
|
const Layout = ({ preview, children }: Props) => {
|
|
return (
|
|
<>
|
|
<Meta />
|
|
<div className="min-h-screen">
|
|
<Alert preview={preview} />
|
|
<main>{children}</main>
|
|
</div>
|
|
<Footer />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Layout
|