Skip to content

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

274 B
Raw Blame
import { IS_ENTERPRISE } from '../utils';

export default function EnterpriseFeature({
  children,
}: {
  children: React.ReactNode | (() => React.ReactNode);
}) {
  return IS_ENTERPRISE
    ? typeof children === 'function'
      ? children()
      : children
    : null;
}