@udus/notion-renderer
Version:

7 lines (6 loc) • 564 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { RichText } from "../RichText/RichText.js";
import { BlockList } from "./BlockList.js";
export const BulletedListItem = ({ block }) => {
return (_jsxs("li", { id: block.id, className: `notion-block notion-bulleted-list-item notion-color-${block.bulleted_list_item.color}`, children: [_jsx(RichText, { richText: block.bulleted_list_item.rich_text }), _jsx("div", { children: block.bulleted_list_item.children && (_jsx(BlockList, { blocks: block.bulleted_list_item.children })) })] }));
};