import { Button } from '@carbon/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { type FormField } from '../../types'; import { disableRepeatAddButton } from './helpers'; import styles from './repeat-controls.scss'; interface RepeatingControlsProps { rows: FormField[]; question: FormField; questionIndex: number; handleDelete: () => void; handleAdd: () => void; } function RepeatControls({ question, rows, handleDelete, handleAdd, questionIndex }: RepeatingControlsProps) { const { t } = useTranslation(); return (