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
15 lines (12 loc) • 439 B
text/typescript
import {createContext} from 'sanity/_createContext'
import type {ConnectorContextValue} from '../../core/changeIndicators/ConnectorContext'
/** @internal */
export const ConnectorContext = createContext<ConnectorContextValue>(
'sanity/_singletons/context/connector',
{
isReviewChangesOpen: false,
onOpenReviewChanges: () => undefined,
onSetFocus: () => undefined,
isInteractive: true,
} as ConnectorContextValue,
)