@sanity/visual-editing
Version:
[](https://npm-stat.com/charts.html?package=@sanity/visual-editing) [](https://
12 lines (8 loc) • 334 B
text/typescript
import {createContext} from 'react'
import type {VisualEditingNode} from '../../types'
import type {SharedStateStore} from './sharedStateStore'
export interface SharedStateContextValue {
comlink?: VisualEditingNode
store: SharedStateStore
}
export const SharedStateContext = createContext<SharedStateContextValue | null>(null)