feat: add authentication banner

This commit is contained in:
Maël Gangloff
2025-12-10 11:03:24 +01:00
parent 7b04d1889e
commit 5c2c74cfb4
5 changed files with 132 additions and 117 deletions

View File

@@ -13,12 +13,12 @@ export const ConfigurationContext = createContext<ConfigurationContextType>({
export type AuthContextType = {
isAuthenticated: boolean
setIsAuthenticated: React.Dispatch<React.SetStateAction<boolean>>
isAuthenticated?: boolean
setIsAuthenticated: React.Dispatch<React.SetStateAction<boolean | undefined>>
}
export const AuthenticatedContext = createContext<AuthContextType>({
isAuthenticated: false,
isAuthenticated: undefined,
setIsAuthenticated: () => {
},
})