@udus/notion-renderer
Version:

10 lines (9 loc) • 325 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import {} from "../../types/notion/common/link.js";
import { LinkContext } from "../hooks.js";
export const LinkProvider = ({ link, children }) => {
if (!link) {
return children;
}
return _jsx(LinkContext.Provider, { value: link, children: children });
};