init import projet

This commit is contained in:
2026-05-03 21:53:59 +02:00
parent f3756fdf8d
commit f4795e538c
179 changed files with 37694 additions and 132 deletions
@@ -0,0 +1,31 @@
"use client";
import { createContext, useContext, useState } from "react";
import type { PredictionTheme } from "@/features/predictions/domain/prediction-theme";
type PredictionThemeContextValue = {
theme: PredictionTheme;
setTheme: (theme: PredictionTheme) => void;
};
const PredictionThemeContext = createContext<PredictionThemeContextValue>({
theme: "boy",
setTheme: () => {},
});
export function PredictionThemeProvider({
children,
}: {
children: React.ReactNode;
}) {
const [theme, setTheme] = useState<PredictionTheme>("boy");
return (
<PredictionThemeContext.Provider value={{ theme, setTheme }}>
{children}
</PredictionThemeContext.Provider>
);
}
export function usePredictionTheme() {
return useContext(PredictionThemeContext);
}