import React, { Component } from 'react';
import './index.scss'

class Container extends Component {
  render() {
    const {user, content, children} = this.props
    return (
      <div className={'container'}>
        <div className="user">
          {
            user && <img className={'avatar'} src={user} alt=""/>
          }
        </div>
        <div className="divide"></div>
        <div className="content">{content ? content : children}</div>
      </div>
    );
  }
}

export default Container;