20 lines
631 B
TypeScript
20 lines
631 B
TypeScript
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; |