Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function hooksHandleClick({ event: e, index }) {
/* eslint-disable-next-line no-undef */
const mql = window.matchMedia(`(min-width: ${BREAKPOINTS.TABLET})`);
if (mql.matches) {
e.preventDefault();
}
return handleTabChange(index);
}