import { memo } from 'react'
import { GrAddCircle, GrSubtractCircle } from 'react-icons/gr'
import { Button } from '../buttons'
import { TextField } from '../text-field'
import { InputActionsEvents } from './input-actions-events'
export function InputActionsComponent(props: any) {
const {
customActions,
customFields,
removeFormField,
addFormField,
updateFormField,
} = props
if (customActions) {
return (
{customFields?.map((item: any, index: number) => {
const onChangeFormPath = (event: any) => {
updateFormField(event.target.value, index, 'path')
}
const updateFormEvents = (value: string) => {
updateFormField(value, index, 'events')
}
return (
{customFields.length > 1 ? (
) : null}
{index === customFields.length - 1 ? (
) : null}
)
})}
)
}
return null
}
export const InputActions = memo(InputActionsComponent)