mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Signed-off-by: Levi Harrison <git@leviharrison.dev> Signed-off-by: Levi Harrison <git@leviharrison.dev>
10 lines
188 B
TypeScript
10 lines
188 B
TypeScript
import React from 'react';
|
|
|
|
const ReadyContext = React.createContext(false);
|
|
|
|
function useReady(): boolean {
|
|
return React.useContext(ReadyContext);
|
|
}
|
|
|
|
export { useReady, ReadyContext };
|