alinea
Version:
Headless git-based CMS
29 lines (27 loc) • 803 B
JavaScript
import {
useAtomValue
} from "../chunks/chunk-TOJF2G3X.js";
import "../chunks/chunk-WJ67RR7S.js";
import {
QueryClientProvider
} from "../chunks/chunk-YWCPLD22.js";
import "../chunks/chunk-NZLE2WMY.js";
// src/dashboard/DashboardProvider.tsx
import {
queryClientAtom,
useSetDashboardOptions
} from "./atoms/DashboardAtoms.js";
import { ModalPortal } from "./view/Modal.js";
import { jsx, jsxs } from "react/jsx-runtime";
function DashboardProvider(props) {
const fullPage = props.fullPage !== false;
useSetDashboardOptions({ fullPage, ...props });
const queryClient = useAtomValue(queryClientAtom);
return /* @__PURE__ */ jsxs(QueryClientProvider, { client: queryClient, children: [
props.children,
/* @__PURE__ */ jsx(ModalPortal, {})
] });
}
export {
DashboardProvider
};