Add trust center v2

Signed-off-by: Jonathan <contact@grafikart.fr>
This commit is contained in:
Jonathan
2025-09-26 16:42:52 +02:00
committed by Sacha Al Himdani
parent 44898be9d3
commit 55e85e5f67
182 changed files with 4609 additions and 425 deletions

View File

@@ -0,0 +1,13 @@
import { createContext, useMemo } from "react";
export const AuthContext = createContext({ isAuthenticated: false });
type Props = {
children: React.ReactNode;
isAuthenticated: boolean;
};
export function AuthProvider({ children, isAuthenticated }: Props) {
const value = useMemo(() => ({ isAuthenticated }), [isAuthenticated]);
return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
}