UNPKG

@pdf-viewer/react

Version:

A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.

13 lines (12 loc) 647 B
import { jsx as e, Fragment as p } from "react/jsx-runtime"; import { useDropFileZoneContext as a } from "../../contexts/DropFileZoneContext.js"; import { useToolbarComponentContext as n } from "../../contexts/ToolbarComponentContext.js"; import '../../assets/WrapperLayout.css';const s = { "rp-wrapper-layout": "_rp-wrapper-layout_2cghq_1" }, c = ({ children: o }) => { const { handleDragEnter: t } = a(), { dropFileZone: r } = n(); return typeof r == "boolean" && !r ? /* @__PURE__ */ e(p, { children: o }) : /* @__PURE__ */ e("div", { className: s["rp-wrapper-layout"], onDragEnter: t, children: o }); }; export { c as WrapperLayout };