added layout

This commit is contained in:
SrGooglo 2024-01-25 23:12:46 +01:00
parent 75ed9468f9
commit 367a0faa69

View File

@ -0,0 +1,28 @@
import React from "react"
import * as antd from "antd"
import AppHeader from "./components/Header"
const Layout = (props) => {
const [api, contextHolder] = antd.notification.useNotification({
stack: {
threshold: 1
}
})
React.useEffect(() => {
app.notification = api
}, [])
return <antd.Layout className="app_layout">
{contextHolder}
<AppHeader />
<antd.Layout.Content className="app_content">
{props.children}
</antd.Layout.Content>
</antd.Layout>
}
export default Layout