import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{useContext as t}from"react";import{makeStyles as o}from"@material-ui/core";import n from"classnames";import i from"../ChartWrapperContext.js";import{jsx as c}from"react/jsx-runtime";var a=["children","className"];function m(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?m(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var s=o({container:{position:"absolute",right:"8px",display:"flex",flexDirection:"column",bottom:function(r){return r.marginBottom+3}}}),l=function(r){var o=r.children,m=r.className,l=void 0===m?null:m,f=e(r,a),u=t(i).chartStyles,b=s({marginBottom:u.marginBottom});return c("div",p(p({className:n(b.container,l)},f),{},{children:o}))};export{l as default};
