@udus/notion-renderer
Version:

9 lines (8 loc) • 448 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { BlocksContext } from "../hooks.js";
import { Block } from "./Block.js";
export const BlockList = ({ blocks }) => {
return (_jsx("div", { className: "notion-block-list", children: _jsx(BlocksContext.Provider, { value: blocks, children: blocks.map((block) => {
return (block !== null && (_jsx(Block, { block: block }, block ? block.id : null)));
}) }) }));
};