@udus/notion-renderer
Version:

10 lines (9 loc) • 578 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Property } from "../../../components/Property/Property.js";
import { isTitleProperty } from "../../../utils/index.js";
import { TableTitle } from "./Title.js";
export const Row = ({ page }) => {
return (_jsx("tr", { id: page.id, className: "notion-table-row", children: Object.entries(page.properties).map(([name, item]) => {
return (item && (_jsx("td", { children: isTitleProperty(item) ? (TableTitle(item, page)) : (_jsx(Property, { name: name, value: item, hideName: true })) })));
}) }));
};