superdesk/superdesk-client-core

View on GitHub
scripts/extensions/sams/src/ui/LeftPanel.tsx

Summary

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

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

export class LeftPanel extends React.PureComponent<IProps> {
    render() {
        const classes = classNames(
            'sd-main-content-grid__filter',
            {
                'open-filters': this.props.open === true,
            },
        );

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