import { FormControl } from 'components/FormControl'
import { AddressInput } from 'components/forms/FormInput'
import { useEffect, useId, useMemo } from 'react'
import { FaMinus, FaPlus } from 'react-icons/fa'
import { useInputState } from './FormInput.hooks'
export interface Address {
address: string
}
export interface AddressListProps {
title: string
subtitle?: string
isRequired?: boolean
entries: [string, Address][]
onAdd: () => void
onChange: (key: string, address: Address) => void
onRemove: (key: string) => void
}
export function AddressList(props: AddressListProps) {
const { title, subtitle, isRequired, entries, onAdd, onChange, onRemove } = props
return (