From d7edbf05ab0e90eedcb99e4462e3a61793b2eff9 Mon Sep 17 00:00:00 2001
From: schererleander <leander@schererleander.de>
Date: Thu, 25 Dec 2025 18:09:23 +0100
Subject: remove all files

---
 src/hooks/theme.tsx | 33 ---------------------------------
 1 file changed, 33 deletions(-)
 delete mode 100644 src/hooks/theme.tsx

(limited to 'src/hooks/theme.tsx')

diff --git a/src/hooks/theme.tsx b/src/hooks/theme.tsx
deleted file mode 100644
index d65b18c..0000000
--- a/src/hooks/theme.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-// hooks/theme.ts
-import { useState, useEffect, useCallback } from 'react';
-
-type Theme = 'light' | 'dark';
-
-const STORAGE_KEY = 'theme';
-
-export function useTheme() {
-  const [theme, setTheme] = useState<Theme>(() => {
-    const stored = typeof window !== 'undefined' ? localStorage.getItem(STORAGE_KEY) : null;
-    if (stored === 'light' || stored === 'dark') {
-      return stored;
-    }
-    
-    if (typeof window !== 'undefined' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
-      return 'dark';
-    }
-    return 'light';
-  });
-
-  useEffect(() => {
-    const root = document.documentElement;
-    root.setAttribute('data-theme', theme);
-    root.classList.toggle('dark', theme === 'dark');
-    localStorage.setItem(STORAGE_KEY, theme);
-  }, [theme]);
-
-  const toggleTheme = useCallback(() => {
-    setTheme(prev => (prev === 'dark' ? 'light' : 'dark'));
-  }, []);
-
-  return { theme, toggleTheme };
-}
-- 
cgit v1.3.1

