2025-07-08 10:40:49 -07:00
|
|
|
import "./App.css";
|
|
|
|
import Cookbook from "./pages/Cookbook.tsx";
|
|
|
|
import RecipePage from "./pages/RecipePage.tsx";
|
|
|
|
import AddRecipe from "./pages/AddRecipe.tsx";
|
2025-07-11 17:06:41 -07:00
|
|
|
import Search from "./pages/Search.tsx"
|
|
|
|
|
|
|
|
import RecipeBookTabs from "./components/RecipeBookTabs.tsx";
|
2025-07-08 10:40:49 -07:00
|
|
|
import { Routes, Route } from "react-router-dom";
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
2025-07-11 17:06:41 -07:00
|
|
|
<div className="min-h-screen flex flex-col">
|
|
|
|
<RecipeBookTabs />
|
|
|
|
<main className="flex-1 overflow-auto">
|
2025-07-08 10:40:49 -07:00
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<Cookbook />} />
|
|
|
|
<Route path="/recipe/:id" element={<RecipePage />} />
|
|
|
|
<Route path="/add-recipe" element={<AddRecipe />} />
|
2025-07-11 17:06:41 -07:00
|
|
|
<Route path="/search" element={<Search />} />
|
2025-07-08 10:40:49 -07:00
|
|
|
</Routes>
|
|
|
|
</main>
|
2025-07-11 17:06:41 -07:00
|
|
|
</div>
|
2025-07-08 10:40:49 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
export default App;
|