import React, { useEffect } from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter, useLocation } from 'react-router-dom';
import AOS from 'aos';
import 'aos/dist/aos.css';
import './styles.css';
import App from './App';
function ScrollToTop() { const { pathname } = useLocation(); useEffect(() => { window.scrollTo({ top: 0, behavior: 'smooth' }); }, [pathname]); return null; }
AOS.init({ duration: 850, once: true, offset: 90 });
ReactDOM.createRoot(document.getElementById('root')).render(<React.StrictMode><BrowserRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}><ScrollToTop /><App /></BrowserRouter></React.StrictMode>);
