UNPKG

@coko/client

Version:

Client side common code for coko apps

20 lines (19 loc) 582 B
import "./sentry.js"; import e from "../components/Root.js"; import { createRoot as t } from "react-dom/client"; import { jsx as n } from "react/jsx-runtime"; //#region src/helpers/startClient.tsx var r = document.getElementById("root"), i = (i, a, o = {}) => { let { makeApolloConfig: s, currentUserQuery: c, onLogout: l, notification: u } = o; if (!r) throw Error("Root element not found"); t(r).render(/* @__PURE__ */ n(e, { currentUserQuery: c, makeApolloConfig: s, notification: u, onLogout: l, routes: i, theme: a })); }; //#endregion export { i as default };