ConceptPortal-public/rsconcept/frontend/src/features/home/HomePage.tsx

18 lines
361 B
TypeScript
Raw Normal View History

import { urls, useConceptNavigation } from '@/app';
import { useAuthSuspense } from '@/features/auth';
2025-02-12 21:36:25 +03:00
2023-07-15 17:46:19 +03:00
function HomePage() {
const router = useConceptNavigation();
const { isAnonymous } = useAuthSuspense();
2023-12-28 14:04:44 +03:00
2025-02-15 18:33:05 +03:00
if (isAnonymous) {
router.replace(urls.manuals);
} else {
router.replace(urls.library);
}
2023-07-25 20:27:29 +03:00
2025-02-15 18:33:05 +03:00
return null;
2023-07-15 17:46:19 +03:00
}
2023-12-28 14:04:44 +03:00
export default HomePage;