"use client" import { useIsMobile } from "@/hooks/use-mobile" import { Button } from "@/styles/base-rhea/ui/button" import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, } from "@/styles/base-rhea/ui/drawer" export function DrawerNested() { const isMobile = useIsMobile() const swipeDirection = isMobile ? "down" : "right" return ( }> Open Drawer Drawer Open another drawer from the same direction.
}> Open Nested Drawer Nested Drawer The parent drawer stays mounted behind this one.
}> Open Third Drawer Third Drawer Two drawers are stacked behind this one.
}> Open Fourth Drawer Fourth Drawer This is the frontmost drawer in the stack.
}> Close }> Close }> Close }>Close ) }