import e from"@babel/runtime/helpers/slicedToArray";import{useState as t}from"react";var a=function(a){var r=a.chart,n=a.onChartStylesChange,i=t(!1),l=e(i,2),o=l[0],d=l[1];return{isHiddenAxes:o,handleAxesHide:function(){d(!o),r.update({xAxis:{title:{enabled:o},labels:{enabled:o}},yAxis:{title:{enabled:o},labels:{enabled:o}}}),n({marginBottom:r.marginBottom})}}};export{a as useHideAxes};
