import { Route, Routes } from 'react-router-dom';
import UserRoutes from './UserRoutes';
import PublicRoutes from './PublicRoutes';
import ScrollToTop from '../components/common/ScrollToTop';


const AppRoutes = () => {
    return (
      <>

      <ScrollToTop />
        {/* Wrap UserRoutes inside AuthProvider separately */}
        <Routes>
          {UserRoutes()}
          {PublicRoutes()}
         
        </Routes>
      </>
    );
};

export default AppRoutes;
