feat: add login and register + add links from primary page

This commit is contained in:
2026-05-10 18:18:17 +03:00
parent 56e32688e0
commit 84e4fcdaec
5 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
export function useIsAuthenticated(): boolean {
return localStorage.getItem('isAuthenticated') === 'true'
}

View File

@@ -1,2 +1,3 @@
export { registrationStart, registrationComplete } from './api/registrationApi'
export type { RegistrationStartPayload, RegistrationCompletePayload } from './api/registrationApi'
export { useIsAuthenticated } from './hooks/useIsAuthenticated'