import { useTranslate } from '@/hooks/common-hooks'; import { Form, Slider } from 'antd'; import { useFormContext } from 'react-hook-form'; import { SingleFormSlider } from './ui/dual-range-slider'; import { FormControl, FormField, FormItem, FormLabel, FormMessage, } from './ui/form'; type FieldType = { top_n?: number; }; interface IProps { initialValue?: number; max?: number; } const TopNItem = ({ initialValue = 8, max = 30 }: IProps) => { const { t } = useTranslate('chat'); return (