/** * * Controller * */ import React from 'react'; import PropTypes from 'prop-types'; import { map } from 'lodash'; import Input from 'components/Input'; import styles from './styles.scss'; function Controller({ actions, name }) { return (
{name}
{map(actions, (action, key) => ( console.log('change')} type="checkbox" value validations={{}} /> ))}
); } Controller.defaultProps = { actions: {}, name: '', }; Controller.propTypes = { actions: PropTypes.object, name: PropTypes.string, }; export default Controller;