mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
bd76193eb5
[web] Introduce menu bar shared component GitOrigin-RevId: c304cc4e1e5961fe4ef7d2112e8d9f91c47dd0ec
12 lines
292 B
TypeScript
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
|
|
)
|