// components/FormField.tsx // Переиспользуемые поля формы import { ChangeEvent } from 'react'; import type { CalculatorField } from '@/types/calculator'; interface FormFieldProps { field: CalculatorField; value: string; onChange: (value: string) => void; } export default function FormField({ field, value, onChange }: FormFieldProps) { const id = `field-${field.id}`; if (field.type === 'number') { return (