import { Routes, Route} from 'react-router';
import Home from './pages/home.tsx';
import InventoryList from "./features/inventory/InventoryList.tsx";
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';

// Create a client
const queryClient = new QueryClient()

function App() {
  return (
      <QueryClientProvider client={queryClient}>
    <>
        <Routes>
            <Route index element={<Home />} />
            <Route path="inventory" element={<InventoryList />} />
        </Routes>


    </>
      </QueryClientProvider>
  )
}

export default App
