uikit/dist/core-runtime.js
Mohamadzadeh 07a4fd3bbc
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 1m29s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 10s
update header dependency
2026-09-01 17:56:56 +03:30

18 lines
453 B
JavaScript

import { createContext as e, useContext as n } from "react";
const s = e(null), i = () => {
const t = n(s);
if (!t)
throw new Error("usePermission must be used within PermissionProvider");
return t;
};
let o = null;
const u = (t) => {
o = typeof t == "function" ? t : null;
}, c = (t) => o == null ? void 0 : o(t);
export {
s as PermissionContext,
c as logoutKeycloakFromRuntime,
u as setKeycloakLogoutHandler,
i as usePermission
};