feat: 优化项目目录结构
This commit is contained in:
18
apps/frontend/app/(with-header-footer)/layout.tsx
Normal file
18
apps/frontend/app/(with-header-footer)/layout.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import Header from "../../components/Header";
|
||||
import Footer from "../../components/Footer";
|
||||
|
||||
export default function LayoutWithHeaderFooter({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main className="flex-1 flex flex-col bg-zinc-50">
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user