mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 22:30:31 +08:00
### 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)
15 lines
303 B
TypeScript
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,
|
|
};
|
|
}
|