UNPKG
@tech_with_shiva_769/generic-dashboard
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A reusable role-based dashboard component library for React
@tech_with_shiva_769/generic-dashboard
/
dist
/
auth
/
AuthProvider.d.ts
14 lines
(13 loc)
•
309 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
React
from
'react'
;
interface
AuthContextType
{
user
: {
role
:
string
; } |
null
;
login
:
(
role
:
string
) =>
void
;
logout
:
() =>
void
; }
export
declare
const
AuthProvider
:
React
.
FC
<{
children
:
React
.
ReactNode
; }>;
export
declare
const
useAuth
:
() =>
AuthContextType
;
export
{};