Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (typeof window !== 'undefined') {
module.exports = require('react-phone-input-2').default;
} else {
module.exports = () => null;
}