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
22 lines (18 loc) • 568 B
text/typescript
import {createContext} from 'sanity/_createContext'
import type {ScheduledPublishingEnabledContextValue} from '../../core/scheduledPublishing/tool/contexts/ScheduledPublishingEnabledProvider'
const DEFAULT: ScheduledPublishingEnabledContextValue = {
enabled: false,
mode: null,
hasUsedScheduledPublishing: {
used: false,
loading: false,
},
}
/**
* @internal
*/
export const ScheduledPublishingEnabledContext =
createContext<ScheduledPublishingEnabledContextValue>(
'sanity/_singletons/context/scheduled-publishing-enabled',
DEFAULT,
)