refactor: reorganize imports and improve error handling across components
This commit is contained in:
10
frontend/src/context/ThemeContextValue.ts
Normal file
10
frontend/src/context/ThemeContextValue.ts
Normal 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)
|
||||
Reference in New Issue
Block a user