feat: restructure sidebar component and update imports in AppLayout

This commit is contained in:
JSC
2025-06-29 16:47:34 +02:00
parent 75a76e33fe
commit 23a7a7eda3
2 changed files with 10 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import { type ReactNode } from 'react'
import { AppSidebar } from '@/components/AppSidebar'
import { PageHeader } from '@/components/PageHeader'
import { AppSidebar } from '@/components/sidebar/AppSidebar'
import { SidebarProvider } from '@/contexts/SidebarContext'
import { type ReactNode } from 'react'
interface AppLayoutProps {
children: ReactNode
@@ -10,7 +10,12 @@ interface AppLayoutProps {
headerActions?: ReactNode
}
export function AppLayout({ children, title, description, headerActions }: AppLayoutProps) {
export function AppLayout({
children,
title,
description,
headerActions,
}: AppLayoutProps) {
return (
<SidebarProvider>
<div className="flex h-screen bg-background">
@@ -20,9 +25,7 @@ export function AppLayout({ children, title, description, headerActions }: AppLa
{headerActions}
</PageHeader>
<main className="flex-1 overflow-y-auto">
<div className="container mx-auto p-6">
{children}
</div>
<div className="container mx-auto p-6">{children}</div>
</main>
</div>
</div>