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.

20 lines (16 loc) 548 B
'use strict'; var jsxRuntime = require('preact/jsx-runtime'); var preact = require('preact'); var compat = require('preact/compat'); function EventProvider(_a) { var events = _a.events, children = _a.children; return jsxRuntime.jsx(EventContext.Provider, { value: events, children: children }); } var EventContext = preact.createContext({}); function useEvent() { var events = compat.useContext(EventContext); return events; } exports.EventProvider = EventProvider; exports.useEvent = useEvent; //# sourceMappingURL=event.js.map