import { useTranslation } from 'react-i18next'; import { Button, Form, Input, Space } from 'antd'; import { MinusOutlined, PlusOutlined } from '@ant-design/icons'; import { RandomUtil } from '@/utils'; import { InputAddon } from '@/components/ui'; export default function AccountsList() { const { t } = useTranslation(); return ( {(fields, { add, remove }) => ( <> {fields.length > 0 && ( {fields.map((field, idx) => ( {String(idx + 1)} ))} )} )} ); }