components.widgets.Form.fields.StandardField.FieldActions.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import { FieldActionsPropTypes } from './FieldPropTypes'
/**
* Компонент, содержащий экшены поля
* @param {array} actions - массив экшенов
*/
const FieldActions = ({ actions }) => (
{actions.map((action, i) => (
// eslint-disable-next-line react/no-array-index-key
))}
)
FieldActions.propTypes = {
actions: FieldActionsPropTypes,
}
FieldActions.defaultProps = {
actions: [],
}
export default FieldActions