Files
monkey-ai-web/src/components/common/brand-icons/useThemeMode.js
T
zhanjunhao 8a48765a46 chore(repo): 移除重复版权文件头并纳入共享单测
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
2026-11-20 11:23:49 +08:00

7 lines
232 B
JavaScript

import { useActualTheme } from '../../../context/Theme';
// Dify and Moonshot variants read the existing app theme without a second provider.
export function useThemeMode() {
return { isDarkMode: useActualTheme() === 'dark' };
}