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

12 lines (10 loc) 189 B
import {useSource} from '../studio' import {type Template} from '../templates' /** * * @hidden * @beta */ export function useTemplates(): Template[] { return useSource().templates }