@pdf-viewer/react
Version:
A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.
14 lines (13 loc) • 831 B
JavaScript
import { jsx as r, Fragment as n } from "react/jsx-runtime";
import { useDropFileZoneContext as a } from "../../contexts/DropFileZoneContext.js";
import { useToolbarComponentContext as s } from "../../contexts/ToolbarComponentContext.js";
import { useToolComponentContext as l } from "../../contexts/ToolComponentContext.js";
import '../../assets/WrapperLayout.css';const m = {
"rp-wrapper-layout": "_rp-wrapper-layout_2cghq_1"
}, y = ({ children: o }) => {
const { handleDragEnter: p } = a(), { dropFileZone: e } = s(), { dropFileZone: t } = l();
return typeof e == "boolean" && !e ? /* @__PURE__ */ r(n, { children: o }) : typeof t == "boolean" && !t ? /* @__PURE__ */ r(n, { children: o }) : /* @__PURE__ */ r("div", { className: m["rp-wrapper-layout"], onDragEnter: p, children: o });
};
export {
y as WrapperLayout
};