feat: add login and register + add links from primary page
This commit is contained in:
3
src/features/auth/hooks/useIsAuthenticated.ts
Normal file
3
src/features/auth/hooks/useIsAuthenticated.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function useIsAuthenticated(): boolean {
|
||||
return localStorage.getItem('isAuthenticated') === 'true'
|
||||
}
|
||||
Reference in New Issue
Block a user