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
13 lines (10 loc) • 529 B
text/typescript
import {createContext} from 'sanity/_createContext'
import type {StudioThemeColorSchemeKey} from '../../core/theme/types'
/**
* The setter for ColorSchemeValueContext, in a separate context to avoid unnecessary re-renders
* If set to false then the UI should adjust to reflect that the Studio can't change the color scheme
* @internal
*/
export const ColorSchemeSetValueContext = createContext<
((nextScheme: StudioThemeColorSchemeKey) => void) | false | null
>('sanity/_singletons/context/color-scheme-set-value', null)