superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/components/Preview/Panel.tsx

Summary

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

/**
 * @ngdoc react
 * @name Panel
 * @description Panel Component to be used in a preview pane
 */
export const Panel: React.StatelessComponent<any> = ({children, className}) => (
    <div
        className={classNames(
            'sd-preview-panel',
            className,
        )}
    >
        {children}
    </div>
);

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