rsnext/examples/cms-sitefinity/components/layout.tsx
Gebov ccbc9b868a
chore(examples): Add 'Sitefinity CMS' Example (#39537)
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>
2022-10-01 15:26:37 +02:00

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