import React from "react"; export interface NavigationOptions { replace?: boolean; } export interface NavigationContextValue { currentPath: string; conversationId: string | null; isNavigating: boolean; navigate: (to: string, options?: NavigationOptions) => void; } const noop = () => {}; const NavigationContext = React.createContext({ currentPath: "/", conversationId: null, isNavigating: false, navigate: noop, }); interface NavigationProviderProps { value: NavigationContextValue; children: React.ReactNode; } export function NavigationProvider({ value, children, }: NavigationProviderProps) { return ( {children} ); } export function useNavigation() { return React.useContext(NavigationContext); }