-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
27 lines (23 loc) · 678 Bytes
/
index.js
File metadata and controls
27 lines (23 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Main exports
export { RBACProvider, useRBACContext } from "./context/rbac-context"
export { useRBAC } from "./hooks/use-rbac"
export { useAuth } from "./hooks/use-auth"
// Components
export { ProtectedRoute } from "./components/protected-route"
export { ProtectedElement } from "./components/protected-element"
export { ConditionalRender } from "./components/conditional-render"
// HOC
export { withAuthorization } from "./hoc/with-authorization"
// Utils
export { RBACUtils } from "./utils/rbac-utils"
// Types
export type {
User,
Group,
Role,
Permission,
RBACConfig,
AuthorizationOptions,
AuthorizationMode,
ProtectedElementProps,
} from "./types/rbac"