UNPKG

@udus/notion-renderer

Version:
7 lines (6 loc) 416 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { PropertyItem } from "./PropertyItem.js"; import { PropertyName } from "./PropertyName.js"; export const Property = ({ name, value, hideName = false }) => { return (_jsxs("div", { className: "notion-property", children: [!hideName && _jsx(PropertyName, { name: name, value: value }), _jsx(PropertyItem, { value: value }, value.id)] })); };