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

9 lines (6 loc) 263 B
import {useClient} from '../../../../hooks' import {DEFAULT_STUDIO_CLIENT_OPTIONS} from '../../../../studioClient' export function useProjectId(): string { const client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS) return client.config().projectId as string }