| 1 |
import { arrayToClassName } from '../../utils/utils'; |
| 2 |
|
| 3 |
export default function ModalSection( props ) { |
| 4 |
return ( |
| 5 |
<section className={ arrayToClassName( [ 'eps-modal__section', props.className ] ) }> |
| 6 |
{ props.children } |
| 7 |
</section> |
| 8 |
); |
| 9 |
} |
| 10 |
|
| 11 |
ModalSection.propTypes = { |
| 12 |
className: PropTypes.string, |
| 13 |
children: PropTypes.any, |
| 14 |
}; |
| 15 |
|
| 16 |
ModalSection.defaultProps = { |
| 17 |
className: '', |
| 18 |
}; |
| 19 |
|