import { useState } from "react"; import CatalogView from "./components/CatalogView.jsx"; import WatchlistTable from "./components/WatchlistTable.jsx"; import ItemDetail from "./components/ItemDetail.jsx"; import SummaryChart from "./components/SummaryChart.jsx"; const TABS = [ { id: "catalog", label: "Catalog" }, { id: "watchlist", label: "Watchlist" }, { id: "summary", label: "Dashboard" }, ]; export default function App() { const [tab, setTab] = useState("catalog"); const [detailSlug, setDetailSlug] = useState(null); const [priceMin, setPriceMin] = useState(0); const [priceMax, setPriceMax] = useState(99999); if (detailSlug) { return (

Warframe Market Tracker

setDetailSlug(null)} />
); } return (

Warframe Market Tracker

{TABS.map((t) => ( ))}
{tab === "watchlist" && ( <>
setPriceMin(Number(e.target.value) || 0)} min={0} /> setPriceMax(Number(e.target.value) || 99999)} min={0} />
)} {tab === "summary" && ( <>
setPriceMin(Number(e.target.value) || 0)} min={0} /> setPriceMax(Number(e.target.value) || 99999)} min={0} />
)}
); }