import { createChatDocumentUploads } from '@easyflow/common-ui';

import {
  deleteAgentChatDocument,
  getAgentChatDocumentStatus,
  retryAgentChatDocument,
  uploadAgentChatDocument,
} from './mediaApi';

/**
 * 创建接入 Agent 文档接口的聊天附件状态组合。
 */
export function useChatDocumentUploads() {
  return createChatDocumentUploads({
    delete: deleteAgentChatDocument,
    retry: retryAgentChatDocument,
    status: getAgentChatDocumentStatus,
    upload: uploadAgentChatDocument,
  });
}
