MCPcopy Create free account
hub / github.com/ChatGPTBox-dev/chatGPTBox / useTheme

Function useTheme

src/hooks/use-theme.mjs:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { useWindowTheme } from './use-window-theme.mjs'
3
4export function useTheme() {
5 const config = useConfig()
6 const theme = useWindowTheme()
7 return [config.themeMode === 'auto' ? theme : config.themeMode, config]
8}

Callers 1

WebJumpBackNotificationFunction · 0.90

Calls 2

useConfigFunction · 0.90
useWindowThemeFunction · 0.90

Tested by

no test coverage detected