UNPKG

@antv/t8

Version:

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

17 lines (14 loc) 483 B
import { jsx } from 'preact/jsx-runtime'; import { createContext } from 'preact'; import { useContext } from 'preact/compat'; function EventProvider(_a) { var events = _a.events, children = _a.children; return jsx(EventContext.Provider, { value: events, children: children }); } var EventContext = createContext({}); function useEvent() { var events = useContext(EventContext); return events; } export { EventProvider, useEvent }; //# sourceMappingURL=event.js.map