superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/components/SidePanel/Footer.tsx

Summary

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

/**
 * @ngdoc react
 * @name Footer
 * @description Footer Component of a side panel
 */
export const Footer: React.StatelessComponent<any> = ({children, className}) => (
    <div
        className={classNames(
            'side-panel__footer',
            className,
        )}
    >
        {children}
    </div>
);

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

Footer.defaultProps = {
    className: '',
};