import React from 'react';
import NormalTable from './normalTable';
import ModalTable from './modalTable';
import InnerTabe from './innerTable';

export default class Table extends React.Component {
  render() {
    if (this.props.isModal) {
      return (<ModalTable {...this.props} />);
    }
    if (this.props.isInner) {
      return (<InnerTabe {...this.props} />);
    }
    return (<NormalTable {...this.props} />);
  }
}
