MCPcopy Create free account
hub / github.com/CodeFox-Repo/codefox / useSidebar

Function useSidebar

frontend/src/components/ui/sidebar.tsx:40–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

SidebarWrapperFunction · 0.90
sidebar.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected