import { useEffect } from 'react'; import { HashRouter, Routes, Route, useLocation } from 'react-router-dom'; import { ThemeProvider, CssBaseline } from '@mui/material'; import theme from './theme/theme'; import { AppsProvider } from './context/AppsContext'; import Home from './pages/Home'; import Download from './pages/Download'; import FAQ from './pages/FAQ'; import Apps from './pages/Apps'; import Buy from './pages/Buy'; import GettingStarted from './pages/GettingStarted'; import Build from './pages/Build'; function ScrollToTop() { const location = useLocation(); useEffect(() => { window.scrollTo({ top: 0, behavior: 'smooth' }); }, [location.pathname]); return null; } export default function App() { return ( } /> } /> } /> } /> } /> } /> } /> ); }