mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
8 lines
252 B
TypeScript
8 lines
252 B
TypeScript
import { useThemeMode } from '@/contexts/theme-context'
|
|
import { getDocumentThemeMode } from '@/lib/theme/colorTheme'
|
|
|
|
export function useTheme(): 'light' | 'dark' {
|
|
const contextMode = useThemeMode()
|
|
return contextMode ?? getDocumentThemeMode()
|
|
}
|