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
19 lines (15 loc) • 435 B
text/typescript
import {createContext} from 'sanity/_createContext'
import type {DocumentFieldAction} from '../../core/config/document/fieldActions/types'
/**
* @internal
*/
export interface DocumentFieldActionsContextValue {
actions: DocumentFieldAction[]
}
/**
* @internal
*/
export const DocumentFieldActionsContext = createContext<DocumentFieldActionsContextValue | null>(
'sanity/_singletons/context/document-field-actions',
null,
)