import r from"@babel/runtime/helpers/defineProperty";import{func as e,bool as o}from"prop-types";import{useTheme as a}from"@material-ui/core";import i from"classnames";import n from"./ComparisonTable.css.js";import{jsxs as c,jsx as s}from"react/jsx-runtime";var l=function(e){var o=e.renderStages,l=e.renderSortIcon,t=e.handleSortClick,m=e.showBar,d=a();return c("div",{className:i(n.comparisonHeader,r({},n.comparisonHeaderLightTheme,d.isLightTheme)),children:[c("div",{className:n.comparisonNameCol,onClick:t&&function(){return t("key")},children:["Parameter",l&&s("div",{className:n.comparisonSortIcon,children:l("key")})]}),c("div",{className:n.comparisonDesignCol,onClick:t&&function(){return t("design")},children:["Design",l&&s("div",{className:n.comparisonSortIcon,children:l("design")})]}),c("div",{className:n.comparisonActualCol,onClick:t&&function(){return t("actual")},children:["Straps",l&&s("div",{className:n.comparisonSortIcon,children:l("actual")})]}),s("div",{className:n.comparisonActualCol,children:"Calc"}),s("div",{className:n.comparisonActualCol,children:"Variance %"}),s("div",{className:n.comparisonActualCol,children:"% from design"}),m&&s("div",{className:n.comparisonChartCol,children:o?o():""})]})};l.propTypes={renderStages:e,handleSortClick:e,renderSortIcon:e,showBar:o},l.defaultProps={renderStages:void 0,handleSortClick:void 0,renderSortIcon:void 0,showBar:!0};export{l as default};
