251113_03_ENH : 베이스 아키텍처에 logout, main 추가
This commit is contained in:
20
src/app/(main)/layout.tsx
Normal file
20
src/app/(main)/layout.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
const MainLayout = ({ children }: { children: React.ReactNode}) => {
|
||||
return (
|
||||
<div className="min-h-screen flex flex-col">
|
||||
{/* 공통 헤더 */}
|
||||
<header className="h-14 border-b px-4 flex items-center">
|
||||
<h1 className="font-semibold">Contact Admin</h1>
|
||||
</header>
|
||||
|
||||
{/* 메인 컨텐츠 영역 */}
|
||||
<main className="flex-1 flex">
|
||||
{/* 필요하면 사이드바 */}
|
||||
{/* <aside className="w-60 border-r">사이드바</aside> */}
|
||||
|
||||
<section className="flex-1 p-4">{children}</section>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default MainLayout;
|
||||
Reference in New Issue
Block a user