import r from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as e}from"react";var a=function(a){var n=a.chart,o=null==n?void 0:n.userOptions.chart.type,p=t(null),c=r(p,2),i=c[0],u=c[1];return e((function(){i||u(o)}),[o]),{chartType:i,handleChartTypeChange:function(r){u(r),n.update({chart:{type:r}})}}};export{a as useChartTypeSwitch};
//# sourceMappingURL=useChartTypeSwitch.js.map
