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

14 lines (10 loc) 380 B
import {createContext} from 'react' import {type WorkspaceSummary} from '../../config' /** @internal */ export interface ActiveWorkspaceMatcherContextValue { activeWorkspace: WorkspaceSummary setActiveWorkspace: (workspaceName: string) => void } /** @internal */ export const ActiveWorkspaceMatcherContext = createContext<ActiveWorkspaceMatcherContextValue | null>(null)