import React from 'react';
import { Flex as Flx } from 'grid-styled';
import { childrenInsertProps } from '../utils/Utils';

class Flex extends React.Component{
    render(){
        return (
            <Flx {...this.props}>
                {childrenInsertProps(this.props.children, {theme: this.props.theme})}
            </Flx>
        )
    }
}

export default Flex;
