mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui.git
synced 2025-10-29 09:52:31 +00:00
10 lines
231 B
TypeScript
10 lines
231 B
TypeScript
import { useAuth } from 'contexts/AuthProvider';
|
|
|
|
export const useEndpointStatus = (endpoint: string) => {
|
|
const { token, endpoints } = useAuth();
|
|
|
|
return {
|
|
isReady: !!token && !!endpoints && !!endpoints[endpoint],
|
|
};
|
|
};
|