@pdf-viewer/react
Version:
A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.
23 lines (22 loc) • 515 B
JavaScript
import { jsx as m } from "react/jsx-runtime";
import { useThemeContext as i, ThemeProvider as u } from "../contexts/ThemeContext.js";
import "react";
const n = (r) => {
const { children: e, customVariables: a, customDarkVariables: s } = r, {
customVariables: t,
customDarkVariables: o
} = i();
return /* @__PURE__ */ m(
u,
{
value: {
customVariables: { ...t, ...a },
customDarkVariables: { ...o, ...s }
},
children: e
}
);
};
export {
n as RPTheme
};