superdesk/superdesk-client-core

View on GitHub
scripts/extensions/sams/src/ui/grid/GridItemContent.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import * as React from 'react';
import classNames from 'classnames';

interface IProps {
    children: React.ReactNode;
    scrollable?: boolean;
}

export class GridItemContent extends React.PureComponent<IProps> {
    render() {
        const classes = classNames(
            'sd-grid-item__content',
            {'sd-grid-item__content--scrollable': this.props.scrollable},
        );

        return (
            <div className={classes}>
                {this.props.children}
            </div>
        );
    }
}