import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { store } from './redux/store.js';
import './styles/index.css';
import App from './App.jsx';
import Toast from './components/Toast.jsx';

createRoot(document.getElementById('root')).render(
    <StrictMode>
        <Provider store={store}>
            <BrowserRouter>
                <App />
                <Toast />
            </BrowserRouter>
        </Provider>
    </StrictMode>,
)