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