import { ChatContext } from '@/app/chat-context'; import { LinkOutlined } from '@ant-design/icons'; import { useContext } from 'react'; import ExcelUpload from './excel-upload'; interface Props { onComplete?: () => void; } function ChatExcel({ onComplete }: Props) { const { currentDialogue, scene, chatId } = useContext(ChatContext); if (scene !== 'chat_excel') return null; return (
{currentDialogue ? (
{currentDialogue.select_param}
) : ( )}
); } export default ChatExcel;