refactor: reorganize imports and improve error handling across components

This commit is contained in:
Wikid82
2025-11-20 22:21:32 -05:00
parent 9f62a4a2df
commit 62904858b2
23 changed files with 271 additions and 169 deletions

View File

@@ -0,0 +1,10 @@
import { createContext } from 'react'
export type Theme = 'dark' | 'light'
export interface ThemeContextType {
theme: Theme
toggleTheme: () => void
}
export const ThemeContext = createContext<ThemeContextType | undefined>(undefined)