UNPKG

sanity-plugin-taxonomy-manager

Version:

Create and manage SKOS compliant taxonomies, thesauri, and classification schemes in Sanity Studio.

11 lines (8 loc) 327 B
import {createContext} from 'react' type TreeContextType = { globalVisibility?: {treeId: string; treeVisibility: string} editControls?: boolean setEditControls?: (value: boolean) => void } export const SchemeContext = createContext(null) export const TreeContext = createContext<TreeContextType>({editControls: false})