2025-02-10 01:32:55 +03:00
|
|
|
import { urls, useConceptNavigation } from '@/app';
|
2025-02-12 13:42:21 +03:00
|
|
|
import { useAuthSuspense } from '@/features/auth';
|
2025-02-12 21:36:25 +03:00
|
|
|
|
2025-02-19 23:30:35 +03:00
|
|
|
export function HomePage() {
|
2023-12-13 14:32:57 +03:00
|
|
|
const router = useConceptNavigation();
|
2025-01-28 19:47:24 +03:00
|
|
|
const { isAnonymous } = useAuthSuspense();
|
2023-12-28 14:04:44 +03:00
|
|
|
|
2025-02-15 18:33:05 +03:00
|
|
|
if (isAnonymous) {
|
2025-02-26 16:28:29 +03:00
|
|
|
router.replace({ path: urls.manuals });
|
2025-02-15 18:33:05 +03:00
|
|
|
} else {
|
2025-02-26 16:28:29 +03:00
|
|
|
router.replace({ path: urls.library });
|
2025-02-15 18:33:05 +03:00
|
|
|
}
|
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
|
|
|
}
|