feat: add mobile shadcn admin navigation

This commit is contained in:
hailin
2026-07-02 15:26:10 +08:00
parent 8749faae43
commit 37d83c9ac8
5 changed files with 324 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
import type * as React from 'react'
import * as React from 'react'
import { AppSidebar } from '@/components/app/AppSidebar'
import { AppTopbar } from '@/components/app/AppTopbar'
@@ -8,11 +8,13 @@ type AppShellProps = {
}
export function AppShell({ children }: AppShellProps) {
const [mobileNavOpen, setMobileNavOpen] = React.useState(false)
return (
<div className="min-h-screen bg-background text-foreground">
<AppSidebar />
<AppSidebar mobileOpen={mobileNavOpen} onMobileOpenChange={setMobileNavOpen} />
<div className="min-h-screen lg:pl-72">
<AppTopbar />
<AppTopbar onMobileMenuClick={() => setMobileNavOpen(true)} />
{children}
</div>
</div>