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
14 lines (11 loc) • 317 B
text/typescript
import {createContext} from 'sanity/_createContext'
import type {PreviewCardContextValue} from '../../core/components/previewCard/PreviewCard'
/**
* @internal
*/
export const PreviewCardContext = createContext<PreviewCardContextValue>(
'sanity/_singletons/context/preview-card',
{
selected: false,
},
)