content: import React from 'react';
  import PropTypes from 'prop-types';
  import clsx from 'clsx';
  import withStyles from '../styles/withStyles';
  import Tablelvl2Context from '../Table/Tablelvl2Context';
  
  export const styles = {
    /* Styles applied to the root element. */
    root: {
      display: 'table-header-group',
    },
  };
  
  const tablelvl2 = {
    variant: 'head',
  };
  
  const TableHead = React.forwardRef(function TableHead(props, ref) {
    const { classes, className, component: Component = 'thead', ...other } = props;
  
    return (
      <Tablelvl2Context.Provider value={tablelvl2}>
        <Component className={clsx(classes.root, className)} ref={ref} {...other} />
      </Tablelvl2Context.Provider>
    );
  });
  
  TableHead.propTypes = {
    /**
     * The content of the component, normally `TableRow`.
     */
    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,
  };
  
  export default withStyles(styles, { name: 'MuiTableHead' })(TableHead);
  