import { Provider } from "react-redux";
import { RouterProvider } from "react-router-dom";
import "react-tooltip/dist/react-tooltip.css";
import { Toaster } from "sonner";
import store from "./app/store";
import "./index.css";
import router from "./routes/router";

const App = () => {
  return (
    <Provider store={store}>
      <RouterProvider router={router} />
      <Toaster
        toastOptions={{
          style: {
            background: "white",
            border: "1px solid #e5e7eb",
            fontSize: "15px",
            fontFamily: "Nunito Sans",
            maxWidth: "280px",
          },
        }}
        position="top-right"
      />
    </Provider>
  );
};
export default App;
