superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/components/ColumnBox/MainColumn.tsx

Summary

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

/**
 * @ngdoc react
 * @name MainColumn
 * @description Main panel component of column box
 */

export const MainColumn: React.StatelessComponent<any> = ({children, padded}) => (
    <div
        className={classNames(
            'sd-column-box__main-column',
            {'sd-column-box__main-column--padded': padded},
        )}
    >
        {children}
    </div>
);

MainColumn.propTypes = {
    children: PropTypes.node,
    padded: PropTypes.bool,
};