/**
 * Created by baoyinghai on 6/28/17.
 */
import React from 'react';
import './index.less';

export default class LineLayout extends React.Component {

  static defaultProps = {
    direction: 'row', // column
  };

  render() {
    const Props = {
      className: ['line-layout', 'direction-' + this.props.direction].join(' '),
      style: {}
    };
    return (
      <div {...Props}>
        {this.props.children}
      </div>
    );
  }
}
