mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-26 02:48:22 +03:00
7 lines
245 B
TypeScript
7 lines
245 B
TypeScript
import { createContext, useContext } from 'react';
|
|
|
|
const RoutesPrefixContext = createContext('');
|
|
|
|
export const RoutesPrefixProvider = RoutesPrefixContext.Provider;
|
|
|
|
export const useRoutesPrefix = (): string => useContext(RoutesPrefixContext);
|