UNPKG

@antv/t8

Version:

T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.

24 lines (20 loc) 901 B
'use strict'; var jsxRuntime = require('preact/jsx-runtime'); var preact = require('preact'); var compat = require('preact/compat'); var paragraph = require('../../../schema/paragraph.js'); require('../../../schema/phrase.js'); function CurrentParagraphInfoProvider(_a) { var paragraphType = _a.paragraphType, children = _a.children; return (jsxRuntime.jsx(CurrentParagraphInfoContext.Provider, { value: { paragraphType: paragraphType }, children: children })); } var CurrentParagraphInfoContext = preact.createContext({ paragraphType: paragraph.ParagraphType.NORMAL, }); function useCurrentParagraphInfo() { var paragraphInfo = compat.useContext(CurrentParagraphInfoContext); return paragraphInfo; } exports.CurrentParagraphInfoProvider = CurrentParagraphInfoProvider; exports.useCurrentParagraphInfo = useCurrentParagraphInfo; //# sourceMappingURL=currentParagraphInfo.js.map