UNPKG

@udus/notion-renderer

Version:
6 lines (5 loc) 400 B
import { jsx as _jsx } from "react/jsx-runtime"; import { isFullUser } from "@notionhq/client"; export const CreatedByProperty = ({ propertyItem, }) => { return (_jsx("div", { id: propertyItem.id, className: "notion-property-item notion-people", children: isFullUser(propertyItem.created_by) ? (_jsx("span", { children: propertyItem.created_by.name }, propertyItem.created_by.id)) : null })); };