prometheus/web/ui/react-app/src/contexts/PathPrefixContext.tsx
Augustin Husson 5bcf2e6511 upgrade react-script to v4
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
2021-09-04 15:56:36 +02:00

10 lines
209 B
TypeScript

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