superdesk/superdesk-client-core

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

Summary

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

interface IProps {
    right?: boolean;
}

export class PanelHeaderSlidingToolbar extends React.PureComponent<IProps> {
    render() {
        const classes = classNames(
            'subnav__sliding-toolbar',
            {
                'subnav__sliding-toolbar--right': this.props.right,
            },
        );

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