/** * * Controller * */ import React from 'react'; import PropTypes from 'prop-types'; import { get, map } from 'lodash'; import InputCheckbox from 'components/InputCheckbox'; import styles from './styles.scss'; function Controller({ actions, name, inputNamePath }) { return (
{name}
{map(Object.keys(actions).sort(), (actionKey) => ( ))}
); } Controller.defaultProps = { actions: {}, inputNamePath: 'permissions.application', name: '', }; Controller.propTypes = { actions: PropTypes.object, inputNamePath: PropTypes.string, name: PropTypes.string, }; export default Controller;