superdesk/superdesk-client-core

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

Summary

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

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

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

export default Footer;