Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

283 B
Raw Blame
import { trim } from 'lodash';
import { useParams } from 'react-router';

export const useGetSendButtonDisabled = () => {
  const { id: dialogId } = useParams();

  return dialogId === '';
};

export const useSendButtonDisabled = (value: string) => {
  return trim(value) === '';
};