uikit/dist/chunks/provider-runtime-B6XIrDzf.js
Mohamadzadeh 43b4a2a42b
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Has been skipped
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Has been skipped
refactor new BiProvider | v1.2.1
2026-10-26 13:58:14 +03:30

23 lines
434 B
JavaScript

import { createContext as o, useContext as r } from "react";
const n = o(null), t = o(null);
function i() {
return r(n);
}
function u() {
const e = i();
if (!e) throw new Error("useKeycloak requires <Keycloak /> inside <BiProvider>.");
return e;
}
function a() {
const e = r(t);
if (!e) throw new Error("useApi requires <Api /> inside <BiProvider>.");
return e;
}
export {
t as A,
n as K,
a,
u as b,
i as u
};