mirror of
https://github.com/supabase/supabase.git
synced 2026-06-02 10:55:11 +08:00
Sorted all imports in all packages, `cms`, `design-system` and `ui-library` apps by running `pnpm format` on them. All changes in this PR are done by the script.
22 lines
649 B
TypeScript
22 lines
649 B
TypeScript
'use client'
|
|
|
|
import { ScrollArea, Sheet, SheetContent, SheetTitle } from 'ui'
|
|
|
|
import { SideNavigation } from '@/components/side-navigation'
|
|
import { useMobileSidebar } from '@/hooks/use-mobile-sidebar'
|
|
|
|
export function MobileSidebarSheet() {
|
|
const { open, setOpen } = useMobileSidebar()
|
|
|
|
return (
|
|
<Sheet open={open} onOpenChange={setOpen}>
|
|
<SheetContent side="left" className="p-0 w-[240px] sm:w-[280px]" showClose={false}>
|
|
<SheetTitle className="sr-only">Navigation</SheetTitle>
|
|
<ScrollArea className="h-full py-6 lg:py-8">
|
|
<SideNavigation />
|
|
</ScrollArea>
|
|
</SheetContent>
|
|
</Sheet>
|
|
)
|
|
}
|