"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("classnames"),r=require("@material-ui/core"),a=require("../../icons/iconParkIcons.js"),n=require("./RealTimeSidebarContext.js"),o=require("./enums.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(i),c=r.makeStyles((function(e){return{iconWithText:{fontSize:24,lineHeight:"24px",marginRight:8,fill:e.palette.primary.contrastText},text:{fontSize:16,lineHeight:"22px",fontWeight:400},icon:{fontSize:24,lineHeight:"24px",fill:e.palette.primary.text6,marginLeft:4},cTpRtSidebarTitle:{display:"flex",flexDirection:"row",alignItems:"center",height:"50px",justifyContent:"normal",paddingLeft:"8px",zIndex:1,position:"absolute","&.vertical":{width:"100%",borderBottom:"1px solid ".concat(e.palette.background.b7),color:e.isLightTheme?e.palette.primary.text9:e.palette.primary.text1},"&.horizontal":{color:e.isLightTheme?e.palette.primary.text1:e.palette.primary.text6}}}})),p=t.memo((function(i){var l=i.className,p=c(),m=t.useContext(n),x=m.isSidebarOpen,u=m.orientation;return e.jsx("div",{className:s.default(p.cTpRtSidebarTitle,u,l),children:x||u===o.ORIENTATIONS.horizontal?e.jsxs(e.Fragment,{children:[e.jsx(a.StopwatchIcon,{className:p.iconWithText}),e.jsx(r.Typography,{variant:"body2",component:"h4",className:p.text,children:"Real-Time Values"})]}):e.jsx(a.StopwatchIcon,{className:p.icon})})}));module.exports=p;
//# sourceMappingURL=SidebarTitle.js.map
