Portal/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:03 +03:00
2024-06-07 20:17:03 +03:00
function HomePage() {
const router = useConceptNavigation();
const { isAnonymous } = useAuthSuspense();
2024-06-07 20:17:03 +03:00
2025-02-15 18:32:37 +03:00
if (isAnonymous) {
router.replace(urls.manuals);
} else {
router.replace(urls.library);
}
2024-06-07 20:17:03 +03:00
2025-02-15 18:32:37 +03:00
return null;
2024-06-07 20:17:03 +03:00
}
export default HomePage;