Files
ragflow/web/src/pages/agent/form/components/output.tsx
balibabu 8695d60055 Feat: Improve the tavily form #3221 (#8390)
### What problem does this PR solve?

Feat: Improve the tavily form #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-06-20 16:18:22 +08:00

27 lines
513 B
TypeScript

export type OutputType = {
title: string;
type: string;
};
type OutputProps = {
list: Array<OutputType>;
};
export function Output({ list }: OutputProps) {
return (
<section className="space-y-2">
<div>Output</div>
<ul>
{list.map((x, idx) => (
<li
key={idx}
className="bg-background-highlight text-background-checked rounded-sm px-2 py-1"
>
{x.title}: {x.type}
</li>
))}
</ul>
</section>
);
}