prometheus/web/ui/react-app/src/contexts/PathPrefixContext.tsx

10 lines
209 B
TypeScript
Raw Normal View History

import React from 'react';
const PathPrefixContext = React.createContext('');
function usePathPrefix(): string {
return React.useContext(PathPrefixContext);
}
export { usePathPrefix, PathPrefixContext };