mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
10 lines
209 B
TypeScript
10 lines
209 B
TypeScript
import React from 'react';
|
|
|
|
const PathPrefixContext = React.createContext('');
|
|
|
|
function usePathPrefix(): string {
|
|
return React.useContext(PathPrefixContext);
|
|
}
|
|
|
|
export { usePathPrefix, PathPrefixContext };
|