Skip to content

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

523 B
Raw Blame
import { IDataset } from '@/interfaces/database/dataset';

/**
 * Enterprise seam for the dataset permission dialog. Open source has no
 * collaborator permissions, so the modal stays closed and the record is empty.
 */
export function useShowPrivilegeDialog() {
  return {
    privilegeModal: false,
    hidePrivilegeModal: () => {},
    handShowPrivilegeModal: (_item: IDataset) => () => {},
    recordWithSourceType: {},
  };
}

export type ShowPrivilegeDialogReturnType = ReturnType<
  typeof useShowPrivilegeDialog
>;