import { MantineProvider } from "@mantine/core";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { Layout } from "./components/Layout";
import Dictionaries from "./pages/Dictionaries";
import DriverForm from "./pages/DriverForm";
import 'dayjs/locale/ru'

function App() {
  return (
    <MantineProvider>
      <BrowserRouter>
        <Routes>
          <Route element={<Layout />}>
            <Route path="/" element={<div>a</div>} />
            <Route path="/dictionaries" element={<Dictionaries />} />
            <Route path="/drivers" element={<DriverForm />} />
          </Route>
        </Routes>
      </BrowserRouter>
    </MantineProvider>
  );
}

export default App;
