import 'react-hot-loader' ; import { render } from 'react-dom' ; import { StrictMode } from 'react' ; import { Provider } from 'react-redux' ; import { BrowserRouter } from 'react-router-dom' ; import App from './App' ; import './assets/style/scss/site.scss' ; import './config/fa.config' ; import { configureStore , RootState } from './store' ; import { cssTransition , ToastContainer } from 'react-toastify' ; import reportWebVitals from './reportWebVitals' ; import * as serviceWorkerRegistration from './serviceWorkerRegistration' ; const initialState = ( window as any ) ?. initialReduxState ; const store = configureStore ( initialState ) ; const transition = cssTransition ( { enter : 'custom__toast__animate__bounceIn' , exit : 'custom__toast__animate__bounceOut' } ) ; const ToastElement = ( < ToastContainer newestOnTop theme = 'colored' autoClose = { 1500 } draggable = { false } position = 'top-center' transition = { transition } / > ) ; render ( < StrictMode > < BrowserRouter > < Provider store = { store } > < App /> < /Provider> < /BrowserRouter> { ToastElement } < /StrictMode>, document.getElementById('root')); serviceWorkerRegistration . unregister ( ) ; reportWebVitals ( ) ;