mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 14:50:30 +08:00
### What problem does this PR solve? Feat: Improve the tavily form #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
27 lines
513 B
TypeScript
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>
|
|
);
|
|
}
|