2025-04-07 15:42:09 +08:00
|
|
|
import {ReactNode} from 'react'
|
2025-04-25 16:24:04 +08:00
|
|
|
import Header from './_client/header'
|
2025-06-09 11:17:38 +08:00
|
|
|
import Navbar from './_client/navbar'
|
|
|
|
|
import Layout from './_client/layout'
|
2025-04-07 15:42:09 +08:00
|
|
|
|
2025-04-26 14:18:08 +08:00
|
|
|
export type AdminLayoutProps = {
|
2025-04-07 15:42:09 +08:00
|
|
|
children: ReactNode
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-26 14:18:08 +08:00
|
|
|
export default async function AdminLayout(props: AdminLayoutProps) {
|
2025-04-25 16:24:04 +08:00
|
|
|
return (
|
2025-06-09 11:17:38 +08:00
|
|
|
<Layout
|
|
|
|
|
navbar={<Navbar/>}
|
|
|
|
|
header={<Header/>}
|
|
|
|
|
content={props.children}
|
|
|
|
|
/>
|
2025-04-07 15:42:09 +08:00
|
|
|
)
|
|
|
|
|
}
|