sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
16 lines (13 loc) • 426 B
text/typescript
import {createContext} from 'sanity/_createContext'
import type {NavbarContextValue} from '../../core/studio/StudioLayout'
/** @internal */
export const NavbarContext = createContext<NavbarContextValue>(
'sanity/_singletons/context/navbar',
{
onSearchFullscreenOpenChange: () => '',
onSearchOpenChange: () => '',
searchFullscreenOpen: false,
searchFullscreenPortalEl: null,
searchOpen: false,
},
)