insomnia/app/ui/components/base/ModalBody.js

15 lines
360 B
JavaScript
Raw Normal View History

import React, {PropTypes} from 'react';
import classnames from 'classnames';
2016-04-15 05:23:54 +00:00
const ModalBody = ({className, children, noScroll, ...props}) => (
<div className={classnames('modal__body', {'modal__body--no-scroll': noScroll}, className)} {...props}>
2016-04-29 04:57:03 +00:00
{children}
2016-04-15 05:23:54 +00:00
</div>
);
ModalBody.propTypes = {
noScroll: PropTypes.bool
};
2016-04-15 05:23:54 +00:00
export default ModalBody;