Files
overleaf-cep/services/web/frontend/js/shared/context/menu-bar-context.tsx
T
David bd76193eb5 Merge pull request #23300 from overleaf/mj-ide-menu-hover
[web] Introduce menu bar shared component

GitOrigin-RevId: c304cc4e1e5961fe4ef7d2112e8d9f91c47dd0ec
2025-02-07 09:06:26 +00:00

12 lines
292 B
TypeScript

import { createContext, Dispatch, SetStateAction } from 'react'
export type MenuBarContextType = {
selected: string | null
setSelected: Dispatch<SetStateAction<string | null>>
menuId: string
}
export const MenuBarContext = createContext<MenuBarContextType | undefined>(
undefined
)