Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
count,
type,
offsetMin,
offsetMax,
dataGrouping,
children: text,
...rest
} = props;
const opts = {
count,
type,
offsetMin,
offsetMax,
dataGrouping,
text,
events: getEventsConfig(rest)
};
addButton(opts, chart);
return () => {
attempt(removeButton, props, chart);
};
}, []);