mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
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 };
|