@udus/notion-renderer
Version:

7 lines (6 loc) • 513 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { DateComponent } from "../Common/Date.js";
export const RollupProperty = ({ propertyItem, format, }) => {
const { rollup } = propertyItem;
return (_jsx("div", { id: propertyItem.id, className: "notion-property-item notion-rollup", children: rollup.type === "number" ? (_jsx("span", { children: rollup.number })) : rollup.type === "date" ? (_jsx(DateComponent, { date: rollup.date, format: format })) : rollup.type === "array" ? null : null }));
};