import React from 'react' import PropTypes from 'prop-types' require('./SubDropdownCreateButton.styl') const SubDropdownCreateButton = props => { return (
{props.availableApp.map(app =>
props.onClickCreateContent(e, props.idFolder, app.slug)} key={app.slug}>
{app.creationLabel}
)}
) } SubDropdownCreateButton.propTypes = { availableApp: PropTypes.array.isRequired, onClickCreateContent: PropTypes.func.isRequired, idFolder: PropTypes.number } export default SubDropdownCreateButton