UNPKG

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

17 lines (14 loc) 483 B
import {type Path} from '@sanity/types' import {createContext} from 'react' /** @internal */ export interface ConnectorContextValue { isReviewChangesOpen: boolean onOpenReviewChanges: () => void | undefined onSetFocus: (nextPath: Path) => void | undefined } /** @internal */ export const ConnectorContext = createContext<ConnectorContextValue>({ isReviewChangesOpen: false, onOpenReviewChanges: () => undefined, onSetFocus: () => undefined, } as ConnectorContextValue)