UNPKG

@udus/notion-renderer

Version:
7 lines (6 loc) 532 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { RichText } from "../RichText/RichText.js"; import { BlockList } from "./BlockList.js"; export const Quote = ({ block }) => { return (_jsxs("blockquote", { id: block.id, className: `notion-block notion-quote notion-color-${block.quote.color}`, children: [_jsx(RichText, { richText: block.quote.rich_text }), block.quote.children && (_jsx("div", { className: "notion-quote-children", children: _jsx(BlockList, { blocks: block.quote.children }) }))] })); };