/* eslint-disable no-console */
import React, { PropTypes } from 'react';
import NormalList from './normalList';
import ModalList from './modalList';
import { removeMask } from '../../utils/LoadingMaskHelper';

class ListView extends React.Component {

  componentDidMount() {
    removeMask();
  }

  render() {
    if (this.props.isModal || this.props.isModalInput) {
      return (<ModalList {...this.props} />);
    }
    return (<NormalList {...this.props} />);
  }
}

export default ListView;
