superdesk/superdesk-client-core

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

Summary

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

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

Menu.propTypes = {
    children: PropTypes.node.isRequired,
    noPadding: PropTypes.bool,
};

Menu.defaultProps = {noPadding: false};

export default Menu;