const VERSION_FLAG = "/v2";

const ROUTE_CONSTANTS: {
  Home: string;
  Favorites: string;
  Create: string;
  Profile: string;
  ShoppingList: string;
  Login: string;
  History: string;
  Search: string;
  Recipe: (id: number) => string;
  Edit: (id: number) => string;
} = {
  Home: `${VERSION_FLAG}/web/home`,
  Favorites: `${VERSION_FLAG}/web/favorites`,
  Create: `${VERSION_FLAG}/web/create`,
  Profile: `${VERSION_FLAG}/web/profile`,
  ShoppingList: `${VERSION_FLAG}/web/list`,
  Login: `${VERSION_FLAG}/web/login`,
  History: `${VERSION_FLAG}/web/history`,
  Search: `${VERSION_FLAG}/web/search`,
  Recipe: (id: number) => `${VERSION_FLAG}/web/recipe/${id}`,
  Edit: (id: number) => `${VERSION_FLAG}/web/create?edit=${id}`,
};

export default ROUTE_CONSTANTS;
