import { PlusOutlined, SearchOutlined, CompassOutlined, FireOutlined } from '@ant-design/icons'; import { Col, Row, Empty, Button, Tag, Space, Input, Spin } from 'antd'; import { useNavigate } from 'react-router-dom'; import type { MarketplaceAgent } from '../../../api'; import type { MarketplacePageLogicOutput } from '../MarketplacePageLogic'; interface Props { logic: MarketplacePageLogicOutput; } export default function MarketplacePageH5({ logic }: Props) { const navigate = useNavigate(); const { loading, q, filtered, setQ, handleFork, isImageUrl } = logic; return (
探索社区智能体

找到更适合你的
AI 伙伴

浏览社区创建的智能体,快速复制、微调并投入你的日常工作流。

} value={q} onChange={(e) => setQ(e.target.value)} style={{ height: 40, borderRadius: 10 }} allowClear />
{loading ? (
) : ( {/* Create New Card - always show on H5 */}
navigate('/agents/new')} className="create-card h5-create-card" style={{ padding: 16 }}>
新建智能体
从空白开始
从名称、提示词、模型和能力配置开始,搭建你的专属 AI 助手。
{filtered.map((a) => (
{isImageUrl(a.avatar) ? ( avatar ) : ( (a.name?.charAt(0) || '?').toUpperCase() )}
{a.fork_count > 10 && ( } style={{ borderRadius: 999, margin: 0, background: 'var(--color-warning-soft)', color: 'var(--color-warning)', fontSize: 11, }} > 热门 )}
{a.name}
by {a.ownerName || '匿名作者'}
{a.description || '暂无详细描述'}
{a.kbCount > 0 && ( 📚 {a.kbCount} 知识 )} {a.skillCount > 0 && ( 🛠 {a.skillCount} 技能 )}
))}
)} {filtered.length === 0 && !loading && ( )}
); }