UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

15 lines (12 loc) 476 B
"use strict"; import { createContext } from '../../create-context.js'; import { plainTextAdapter } from './adapters.js'; const [CodeBlockAdapterContextProvider, useCodeBlockAdapterContext] = createContext({ strict: false, defaultValue: { highlight: plainTextAdapter.getHighlighter(null), loadContext: () => Promise.resolve(null), getHighlighter: plainTextAdapter.getHighlighter } }); export { CodeBlockAdapterContextProvider, useCodeBlockAdapterContext };