"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(e);exports.useHideAxes=function(e){var r=e.chart,n=e.onChartStylesChange,i=t.useState(!1),l=a.default(i,2),s=l[0],u=l[1];return{isHiddenAxes:s,handleAxesHide:function(){u(!s),r.update({xAxis:{title:{enabled:s},labels:{enabled:s}},yAxis:{title:{enabled:s},labels:{enabled:s}}}),n({marginBottom:r.marginBottom})}}};
