content: import _extends from "@babel/runtime/helpers/esm/extends";
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
  import React from 'react';
  import PropTypes from 'prop-types';
  import clsx from 'clsx';
  import withStyles from '../styles/withStyles';
  export const styles = {
    /* Styles applied to the root element. */
    root: {
      width: '100%',
      overflowX: 'auto'
    }
  };
  const TableContainer = React.forwardRef(function TableContainer(props, ref) {
    const {
      classes,
      className,
      component: Component = 'div'
    } = props,
          other = _objectWithoutPropertiesLoose(props, ["classes", "className", "component"]);
  
    return React.createElement(Component, _extends({
      ref: ref,
      className: clsx(classes.root, className)
    }, other));
  });
  process.env.NODE_ENV !== "production" ? TableContainer.propTypes = {
    /**
     * The table itself, normally `<Table />`
     */
    children: PropTypes.node,
  
    /**
     * Override or extend the styles applied to the component.
     * See [CSS API](#css) below for more details.
     */
    classes: PropTypes.object.isRequired,
  
    /**
     * @ignore
     */
    className: PropTypes.string,
  
    /**
     * The component used for the root node.
     * Either a string to use a DOM element or a component.
     */
    component: PropTypes.elementType
  } : void 0;
  export default withStyles(styles, {
    name: 'MuiTableContainer'
  })(TableContainer);