8a48765a46
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
7 lines
232 B
JavaScript
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' };
|
|
}
|