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
20 lines (17 loc) • 453 B
text/typescript
import {type Path} from '@sanity/types'
import {type Context, createContext} from 'react'
/** @internal */
export interface ChangeIndicatorContextValue {
value?: unknown
focusPath: Path
path: Path
fullPath: Path
isChanged: boolean
}
/** @internal */
export const ChangeIndicatorContext: Context<ChangeIndicatorContextValue> = createContext({
path: [],
fullPath: [],
focusPath: [],
isChanged: false,
} as ChangeIndicatorContextValue)