import {createContext, useContext} from 'react'; interface RoutingContextValue { baseURL: string; } const DEFAULT_VALUE = { baseURL: '/starfish', }; const RoutingContext = createContext(DEFAULT_VALUE); interface Props { children: React.ReactNode; value?: RoutingContextValue; } export const useRoutingContext = () => useContext(RoutingContext); export function RoutingContextProvider({value, children}: Props) { return ( {children} ); }