@udus/notion-renderer
Version:

10 lines (9 loc) • 384 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { AnnotationContext, useMapper } from "../hooks.js";
export const AnnotationItemProvider = ({ mapper, children }) => {
if (!mapper) {
return children;
}
const annotationMapper = useMapper();
return (_jsx(AnnotationContext.Provider, { value: { ...annotationMapper, ...mapper }, children: children }));
};