MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / useSidebar

Function useSidebar

web/src/components/ui/sidebar.tsx:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41const SidebarContext = React.createContext<SidebarContext | null>(null)
42
43function useSidebar() {
44 const context = React.useContext(SidebarContext)
45 if (!context) {
46 throw new Error('useSidebar must be used within a SidebarProvider.')
47 }
48
49 return context
50}
51
52const SidebarProvider = React.forwardRef<
53 HTMLDivElement,

Callers 1

sidebar.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected