import React from 'react'; import cls from 'classnames'; import { useProviderContext } from '@agentscope-ai/chat'; import { SparkPlusLine } from '@agentscope-ai/icons'; import { Upload } from 'antd'; import type { DraggerProps } from 'antd/es/upload'; import Style from './style'; import { IChatAnywhereConfigOnUpload } from '@agentscope-ai/chat/ChatAnywhere/hooks/types'; type MediaUploadProps = Omit & IChatAnywhereConfigOnUpload & { className?: string; }; const { Dragger } = Upload; const MediaUpload: React.FC = (props) => { const { className, icon, ...restProps } = props; const { getPrefixCls } = useProviderContext(); const prefixCls = getPrefixCls('media-upload'); return ( <>