import "./App.css";
import Layout from "./components/layout";
import Management1 from "./components/management1";
import CafeManagement from "./pages/CafeManagement";
// import Header from "./components/header";
import { BrowserRouter, Routes, Route } from "react-router-dom";

function App() {
  return (
    <div dir="rtl">
      <BrowserRouter>
        <Routes>
          <Route path="/" element={<Layout />}>
            <Route path="management1" element={<Management1 />} />
            <Route path="edit-cafe/:id" element={<CafeManagement />} />
          </Route>
        </Routes>
      </BrowserRouter>
    </div>
  );
}

export default App;
