import React, { Component } from 'react'; import ChatList from './ChatList/ChatList'; import Location from './Location/Location'; import Info from './Info/Info'; import './Body.scss'; export default class Body extends Component { render(){ return (
{this.props.tabBar === 'chat' ? : null} {this.props.tabBar === 'location' ? : null} {this.props.tabBar === 'info' ? : null}
); } }