webapp/src/components/Layouts/MainLayout.tsx

21 lines
412 B
TypeScript
Raw Normal View History

2022-09-22 09:37:49 +00:00
import type { JSX } from 'solid-js'
import { Header } from '../Nav/Header'
import { Footer } from '../Discours/Footer'
import '../../styles/app.scss'
type Props = {
headerTitle?: string
children: JSX.Element
}
export const MainLayout = (props: Props) => {
return (
<>
<Header title={props.headerTitle} />
<main class="main-content">{props.children}</main>
<Footer />
</>
)
}