@udus/notion-renderer
Version:

11 lines (10 loc) • 466 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { isFullUser } from "@notionhq/client";
export const PeopleProperty = ({ propertyItem, }) => {
return (_jsx("div", { id: propertyItem.id, className: "notion-property-item notion-people", children: propertyItem.people.map((person) => {
if (isFullUser(person)) {
return _jsx("span", { children: person.name }, person.id);
}
return null;
}) }));
};