refactor: simplify ThemeToggle with config-driven approach

Replace imperative theme toggling logic with declarative
THEME_CONFIG object for cleaner, more maintainable code.
Add type safety with Theme type and isTheme type guard.
This commit is contained in:
2025-10-23 13:00:22 -05:00
parent a51d21df83
commit 698328f445
2 changed files with 23 additions and 35 deletions

View File

@@ -17,6 +17,8 @@ export default [
// Base configuration with ignores
{
ignores: [
".media/**",
"coverage/**",
".next/**",
"node_modules/**",
"out/**",