import e from"../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import*as r from"react";import t from"../../../../prop-types/index.js";import s from"../../../../clsx/dist/clsx.m.js";import l from"../styles/withStyles.js";import a from"../Table/Tablelvl2Context.js";import{fade as i}from"../styles/colorManipulator.js";var c=function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:i(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}},n=r.forwardRef((function(t,l){var i=t.classes,c=t.className,n=t.component,m=void 0===n?"tr":n,p=t.hover,d=void 0!==p&&p,v=t.selected,h=void 0!==v&&v,f=o(t,["classes","className","component","hover","selected"]),u=r.useContext(a);return r.createElement(m,e({ref:l,className:s(i.root,c,u&&{head:i.head,footer:i.footer}[u.variant],d&&i.hover,h&&i.selected),role:"tr"===m?null:"row"},f))}));"production"!==process.env.NODE_ENV&&(n.propTypes={children:t.node,classes:t.object.isRequired,className:t.string,component:t.elementType,hover:t.bool,selected:t.bool});var m=l(c,{name:"MuiTableRow"})(n);export default m;export{c as styles};
//# sourceMappingURL=TableRow.js.map
