|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
useNodesReadOnly, |
|
|
useNodesReadOnly, |
|
|
} from '@/app/components/workflow/hooks' |
|
|
} from '@/app/components/workflow/hooks' |
|
|
|
|
|
import { useIsChatMode } from '../../hooks' |
|
|
|
|
|
|
|
|
const ChatVariableTrigger = () => { |
|
|
const ChatVariableTrigger = () => { |
|
|
const { nodesReadOnly } = useNodesReadOnly() |
|
|
const { nodesReadOnly } = useNodesReadOnly() |
|
|
|
|
|
const isChatMode = useIsChatMode() |
|
|
|
|
|
|
|
|
|
|
|
if (!isChatMode) |
|
|
|
|
|
return null |
|
|
|
|
|
|
|
|
return <ChatVariableButton disabled={nodesReadOnly} /> |
|
|
return <ChatVariableButton disabled={nodesReadOnly} /> |
|
|
} |
|
|
} |
|
|
export default memo(ChatVariableTrigger) |
|
|
export default memo(ChatVariableTrigger) |