{side === "api" && (
setSearch(e.target.value)}
/>
)}
{side === "history" ? (
<>
{history.length === 0 && (
暂无请求记录
发送请求后自动归档
)}
{history.slice(0, 50).map((h) => (
{h.nodeId && (
)}
))}
{history.length > 0 && (
)}
>
) : (
<>
{collections.length === 0 && (
还没有集合
点击顶部「导入」或「新建」开始
)}
{collections.map((collection) => (
{collection.children
.filter((n) => search === "" || hitIds.has(n.id))
.map((node) => (
))}
))}
>
)}