'use client'; import { BlockButton, Button } from '@/components/ui/button'; import { FormControl, FormField, FormItem, FormMessage, } from '@/components/ui/form'; import { Input } from '@/components/ui/input'; import { X } from 'lucide-react'; import { useFieldArray, useFormContext } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; export function BeginDynamicOptions() { const { t } = useTranslation(); const form = useFormContext(); const name = 'options'; const { fields, remove, append } = useFieldArray({ name: name, control: form.control, }); return (