import { createContext } from 'react';

interface HistoryContextValue {
  navigate: (url: string, replace?: boolean) => void;
}

export const HistoryContext = createContext<HistoryContextValue>({
  navigate: () => undefined,
});
