insomnia/app/ui/components/base/ModalBody.js
2016-09-16 22:46:44 -07:00

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;