import { Navigate, Route, Routes } from 'react-router-dom' import { useZino } from './api/provider.jsx' import Login from './pages/Login.jsx' import Shell from './layout/Shell.jsx' import { PortfolioProvider } from './api/portfolio.jsx' import Overview from './screens/Overview.jsx' import Pipeline from './screens/Pipeline.jsx' import Lead from './screens/Lead.jsx' export default function App() { const { isAuthed } = useZino() if (!isAuthed) { return ( } /> } /> ) } return ( } /> }> {/* The morning page. This used to redirect to the underwriting queue — one stage, usually empty, and somebody else's. */} } /> } /> } /> } /> ) }