mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add retrieval tool #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
27 lines
600 B
TypeScript
27 lines
600 B
TypeScript
import {
|
|
FormControl,
|
|
FormField,
|
|
FormItem,
|
|
FormLabel,
|
|
} from '@/components/ui/form';
|
|
import { Textarea } from '@/components/ui/textarea';
|
|
import { useFormContext } from 'react-hook-form';
|
|
|
|
export function DescriptionField() {
|
|
const form = useFormContext();
|
|
return (
|
|
<FormField
|
|
control={form.control}
|
|
name={`description`}
|
|
render={({ field }) => (
|
|
<FormItem className="flex-1">
|
|
<FormLabel>Description</FormLabel>
|
|
<FormControl>
|
|
<Textarea {...field}></Textarea>
|
|
</FormControl>
|
|
</FormItem>
|
|
)}
|
|
/>
|
|
);
|
|
}
|