UNPKG

@sanity/assist

Version:

You create the instructions; Sanity AI Assist does the rest.

9 lines (6 loc) 267 B
import {useMemo} from 'react' import {Path, SchemaType} from 'sanity' import {isAssistSupported} from './assistSupported' export function useAssistSupported(path: Path, schemaType: SchemaType) { return useMemo(() => isAssistSupported(schemaType), [schemaType]) }