UNPKG

@udus/notion-renderer

Version:
8 lines (7 loc) 647 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Icon } from "../Common/Icon.js"; import { useMapper } from "../hooks.js"; export const ChildDatabase = ({ block }) => { const { Link } = useMapper(); return (_jsx("div", { id: block.id, className: "notion-block notion-child-database", children: _jsxs(Link, { prefix: "/", link: block.id, children: [_jsx("span", { className: "notion-child-database-icon", children: _jsx(Icon, { icon: block.child_database.database?.icon ?? null }) }), _jsx("span", { className: "notion-child-database-title", children: block.child_database.title || "Unknown database" })] }) })); };