superdesk/superdesk-client-core

View on GitHub
scripts/apps/contacts/components/Popup/Content.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';

const Content: React.StatelessComponent<any> = ({children, className, noPadding}) => (
    <div
        className={classNames(
            'popup__menu-content',
            {'popup__menu-content--no-padding': noPadding},
            className,
        )}
    >
        {children}
    </div>
);

Content.propTypes = {
    children: PropTypes.node,
    className: PropTypes.string,
    noPadding: PropTypes.bool,
};

Content.defaultProps = {noPadding: false};

export default Content;