Files
urbanLifeline/dify/web/app/components/workflow-app/hooks/use-is-chat-mode.ts

9 lines
257 B
TypeScript
Raw Permalink Normal View History

2025-12-01 17:21:38 +08:00
import { useStore as useAppStore } from '@/app/components/app/store'
import { AppModeEnum } from '@/types/app'
export const useIsChatMode = () => {
const appDetail = useAppStore(s => s.appDetail)
return appDetail?.mode === AppModeEnum.ADVANCED_CHAT
}