@udus/notion-renderer
Version:

7 lines (6 loc) • 486 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { File as FileComponent } from "../Common/File.js";
import { RichText } from "../RichText/RichText.js";
export const File = ({ block }) => {
return (_jsxs("div", { id: block.id, className: "notion-block notion-file-block", children: [_jsx(FileComponent, { file: block.file }), _jsx("div", { className: "notion-caption notion-file-caption", children: _jsx(RichText, { richText: block.file.caption }) })] }));
};