MCPcopy
hub / github.com/Dokploy/dokploy / useSidebar

Function useSidebar

apps/dokploy/components/ui/sidebar.tsx:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37const SidebarContext = React.createContext<SidebarContext | null>(null);
38
39function useSidebar() {
40 const context = React.useContext(SidebarContext);
41 if (!context) {
42 throw new Error("useSidebar must be used within a SidebarProvider.");
43 }
44
45 return context;
46}
47
48const SidebarProvider = React.forwardRef<
49 HTMLDivElement,

Callers 3

SidebarLogoFunction · 0.90
MobileCloserFunction · 0.90
sidebar.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected