import * as React from 'react';
import { DemoComponentProps } from '@epam/uui-docs';
import { FlexCell } from '@epam/loveship';
import css from './DefaultContext.module.scss';

export class DefaultContext extends React.Component<DemoComponentProps, any> {
    public static displayName = 'Default';
    render() {
        const { DemoComponent, props } = this.props;

        return (
            <div className={ css.root } style={ { background: props.theme == 'dark' && '#2c2f3c' } }>
                <FlexCell width="auto">
                    <DemoComponent { ...props } />
                </FlexCell>
            </div>
        );
    }
}
