import React from 'react' import { BrowserRouter, Routes as RRDRoutes, Route, useLocation } from 'react-router-dom' const AnyRoutes: any = RRDRoutes import Broadcasts from './pages/Broadcasts' import Studio from './pages/Studio' import NextreamLanding from './pages/NextreamLanding' import Login from './pages/Login' import Register from './pages/Register' import MainLayout from './components/MainLayout' function ProtectedRoutes() { const AnyRoutes: any = RRDRoutes return ( } /> } /> Perfil (placeholder)} /> Settings (placeholder)} /> ) } export default function App() { return ( {/* Use any-cast to avoid TS incompatibility between react types and react-router-dom */} {/* Public landing and auth routes */} } /> } /> } /> {/* Protected routes rendered inside MainLayout */} } /> } /> } /> } /> ) }