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