/**
 * 导航上下文
 * ============
 */

import { createContext, useContext } from 'react';

interface NavigationContextType {
  currentPage: string;
  navigate: (page: string) => void;
  appEnvironment: string;
}

export const NavigationContext = createContext<NavigationContextType>({
  currentPage: 'video-creation',
  navigate: () => {},
  appEnvironment: 'production',
});

export const useNavigation = () => useContext(NavigationContext);
