Files
ragflow/web/src/pages/next-chats/chat/use-switch-debug-mode.ts
balibabu 434b55be70 Feat: Display a separate chat multi-model comparison page #3221 (#9461)
### What problem does this PR solve?
Feat: Display a separate chat multi-model comparison page #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-08-14 09:39:20 +08:00

15 lines
303 B
TypeScript

import { useCallback, useState } from 'react';
export function useSwitchDebugMode() {
const [isDebugMode, setIsDebugMode] = useState(false);
const switchDebugMode = useCallback(() => {
setIsDebugMode(!isDebugMode);
}, [isDebugMode]);
return {
isDebugMode,
switchDebugMode,
};
}