Files
labelmain-demo/app/person/layout.tsx
2026-03-27 16:18:44 +08:00

22 lines
530 B
TypeScript

import AppLayout from "@/components/layout/AppLayout"
import { PathnameRecorder } from "@/components/layout/PathnameRecorder"
import { componentList, showList } from "@/components/layout/common"
// async function getMenu() {
// return [...componentList, ...showList]
// }
export default async function Layout({
children,
}: {
children: React.ReactNode
}) {
const menu = [...componentList, ...showList]
return (
<AppLayout menu={menu}>
{children}
<PathnameRecorder menu={menu} />
</AppLayout>
)
}