Merge pull request #23300 from overleaf/mj-ide-menu-hover

[web] Introduce menu bar shared component

GitOrigin-RevId: c304cc4e1e5961fe4ef7d2112e8d9f91c47dd0ec
This commit is contained in:
David
2025-02-07 09:06:26 +00:00
committed by Copybot
parent b5c11370d6
commit bd76193eb5
10 changed files with 199 additions and 45 deletions
@@ -0,0 +1,10 @@
import { MenuBarContext } from '@/shared/context/menu-bar-context'
import { useContext } from 'react'
export const useMenuBar = () => {
const context = useContext(MenuBarContext)
if (context === undefined) {
throw new Error('useMenuBarContext must be used within a MenuBarContext')
}
return context
}