Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const userHandler = props[event];
props[event] = (...args) => {
maskHandlers[event](...args);
if (userHandler) userHandler(...args);
};
return props;
}, {...props});
}
};
const nestedComponentName = ComposedComponent.displayName || ComposedComponent.name || 'Component';
MaskedComponent.displayName = `IMaskNative(${nestedComponentName})`;
return IMaskMixin(MaskedComponent);
}