Files
Charon/frontend/src/context/ThemeContextValue.ts
2025-11-24 18:22:01 +00:00

11 lines
240 B
TypeScript

import { createContext } from 'react'
export type Theme = 'dark' | 'light'
export interface ThemeContextType {
theme: Theme
toggleTheme: () => void
}
export const ThemeContext = createContext<ThemeContextType | undefined>(undefined)