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

10 lines (6 loc) 264 B
import {createContext} from 'react' import {type WorkspaceSummary} from '../../config' /** @internal */ export type WorkspacesContextValue = WorkspaceSummary[] /** @internal */ export const WorkspacesContext = createContext<WorkspacesContextValue | null>(null)