UNPKG

@udus/notion-renderer

Version:
7 lines (6 loc) 457 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Annotation } from "./Annotation/Annotation.js"; import { LinkText } from "./LinkText.js"; export const Text = ({ richText: richTextItem }) => { return (_jsx("span", { className: "notion-rich-text-type-text", children: _jsx(Annotation, { richTextItem: richTextItem, children: richTextItem.text.link ? (_jsx(LinkText, { richTextText: richTextItem.text })) : (richTextItem.text.content) }) })); };