UNPKG

@udus/notion-renderer

Version:
7 lines (6 loc) 472 B
import { jsx as _jsx } from "react/jsx-runtime"; import { AnnotationItemProvider } from "../../Mapper/Annotation.js"; import { AnnotationItem } from "./AnnotationItem.js"; export const Annotation = ({ richTextItem, children, annotationMapper, }) => { return (_jsx("span", { className: "notion-annnotation", children: _jsx(AnnotationItemProvider, { mapper: annotationMapper, children: _jsx(AnnotationItem, { richTextItem: richTextItem, children: children }) }) })); };