init commit

This commit is contained in:
Jose
2025-09-14 18:41:10 +02:00
commit a8408f0f43
66 changed files with 3016 additions and 0 deletions

10
src/hooks/useTheme.js Normal file
View File

@@ -0,0 +1,10 @@
import { useContext } from "react";
import { ThemeContext } from "../context/ThemeContext";
export const useTheme = () => {
const context = useContext(ThemeContext);
if (!context) {
throw new Error("useTheme debe usarse dentro de un <ThemeProvider>");
}
return context;
};