mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
import React, {PropTypes} from 'react';
|
|
import classnames from 'classnames';
|
|
|
|
const ModalBody = ({className, children, noScroll, ...props}) => (
|
|
<div className={classnames('modal__body', {'modal__body--no-scroll': noScroll}, className)} {...props}>
|
|
{children}
|
|
</div>
|
|
);
|
|
|
|
ModalBody.propTypes = {
|
|
noScroll: PropTypes.bool
|
|
};
|
|
|
|
export default ModalBody;
|