in 3-ai-native-e2e-sample/frontend/src/components/ui/sidebar.tsx [39:46]
function useSidebar() {
const context = React.useContext(SidebarContext)
if (!context) {
throw new Error("useSidebar must be used within a SidebarProvider.")
}
return context
}