UNPKG

@tech_with_shiva_769/generic-dashboard

Version:

A reusable role-based dashboard component library for React

14 lines (13 loc) 309 B
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 {};