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

export const dataSetting = {
  text: 'string',
};

export default class Label extends React.Component {
  static propTypes = {
    dataSource: React.PropTypes.object
  };

  static defaultProps = {
    dataSource: {}
  };
  render() {
    const { dataSource = {} } = this.props;
    return (
      <span>{(dataSource && dataSource.text) || 'is null '}</span>
    );
  }
}
