import React from 'react';
import ReactDOM from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import { router } from './router';
import './index.css'
import "iranianbanklogos/dist/ibl.css";
import { Toaster } from 'react-hot-toast';
import { RQProvider } from './rq-provider';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);

root.render(
  <React.StrictMode>
    <RQProvider>
      <RouterProvider router={router} />
      <Toaster position='top-center' toastOptions={{
        duration: 4000,
      }} />
    </RQProvider>
  </React.StrictMode>
);
