Skip to content

Commit cff3ae0

Browse files
Merge pull request #62 from drivly/codex/create-app-tsx-layout-with-navigation
Add admin App layout component
2 parents 30a6333 + b1c4dbe commit cff3ae0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/mdxui/src/layouts/App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { type JSX } from 'react'
2+
3+
export function AppLayout({ navigation, children, className }: { navigation: React.ReactNode; children: React.ReactNode; className?: string }): JSX.Element {
4+
return (
5+
<div className={`flex min-h-screen ${className ?? ''}`.trim()}>
6+
<nav className='w-64 border-r'>{navigation}</nav>
7+
<main className='flex-1 p-4'>{children}</main>
8+
</div>
9+
)
10+
}

0 commit comments

Comments
 (0)