import { Navigate, Route, Routes, useLocation } from 'react-router-dom'; import { AnimatePresence, LayoutGroup } from 'framer-motion'; import { RequireOnboarded } from '@/auth/components/RequireOnboarded'; import { RequireOnboarding } from '@/auth/components/RequireOnboarding'; import { AuthModal } from '@/auth/components/ui/Modal'; import { AuthLayout } from '@/ui/layout/AuthLayout'; import { DefaultLayout } from '@/ui/layout/DefaultLayout'; import { CreateProfile } from '~/pages/auth/CreateProfile'; import { CreateWorkspace } from '~/pages/auth/CreateWorkspace'; import { Index } from '~/pages/auth/Index'; import { PasswordLogin } from '~/pages/auth/PasswordLogin'; import { Verify } from '~/pages/auth/Verify'; import { Companies } from '~/pages/companies/Companies'; import { Opportunities } from '~/pages/opportunities/Opportunities'; import { People } from '~/pages/people/People'; import { SettingsProfile } from '~/pages/settings/SettingsProfile'; import { SettingsWorkspaceMembers } from '~/pages/settings/SettingsWorkspaceMembers'; import { AppInternalHooks } from './AppInternalHooks'; /** * AuthRoutes is used to allow transitions between auth pages with framer-motion. */ function AuthRoutes() { const location = useLocation(); return ( } /> } /> } /> } /> } /> ); } export function App() { return ( <> } /> } /> } /> } /> } /> } /> } /> } /> } /> ); }