优化主页,提供通用页面模板组件
This commit is contained in:
16
src/components/home/page.tsx
Normal file
16
src/components/home/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import {Children} from '@/lib/utils'
|
||||
import Wrap from '../wrap'
|
||||
import BreadCrumb, {BreadCrumbItem} from '../bread-crumb'
|
||||
|
||||
export default function HomePage(props: Children & {
|
||||
path: BreadCrumbItem[]
|
||||
}) {
|
||||
return (
|
||||
<main className="mt-20 flex flex-col gap-3 py-6">
|
||||
<Wrap>
|
||||
<BreadCrumb items={props.path}/>
|
||||
</Wrap>
|
||||
{props.children}
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user