import React, { useEffect } from 'react'; import { RouterProvider } from 'react-router-dom'; import { Provider } from 'react-redux'; import { Toaster } from 'react-hot-toast'; import { router } from './router'; import { store } from './store'; import ErrorBoundary from './components/ErrorBoundary'; import { useAuth } from './hooks/useAuth'; // i18n import './i18n'; // Global styles import './styles/globals.css'; const AppContent: React.FC = () => { const { initializeAuth } = useAuth(); useEffect(() => { initializeAuth(); }, [initializeAuth]); return ( {/* Global Toast Notifications */} ); }; const App: React.FC = () => { return ( ); }; export default App;