fase(10): frontend shadcn-ui shell with auth
This commit is contained in:
22
frontend/src/components/layout/AppLayout.tsx
Normal file
22
frontend/src/components/layout/AppLayout.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Outlet } from 'react-router-dom'
|
||||
import { SidebarProvider } from '@/components/ui/sidebar'
|
||||
import { AppSidebar } from './AppSidebar'
|
||||
import { TopBar } from './TopBar'
|
||||
import { CommandPalette } from './CommandPalette'
|
||||
|
||||
export function AppLayout() {
|
||||
return (
|
||||
<SidebarProvider>
|
||||
<div className="flex h-screen w-full overflow-hidden bg-background">
|
||||
<AppSidebar />
|
||||
<div className="flex flex-col flex-1 overflow-hidden">
|
||||
<TopBar />
|
||||
<main className="flex-1 overflow-auto p-6">
|
||||
<Outlet />
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
<CommandPalette />
|
||||
</SidebarProvider>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user