Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
const ReactCrop = typeof window !== 'undefined' ? require('react-image-crop').default : null;
import {
Row,
Col,
Button
} from './../../components';
const _document = typeof document !== 'undefined' ? document : null;
const _window = typeof window !== 'undefined' ? window : null;
const initialPosition = {
x: 10,
y: 10,
width: 80,
height: 80,
}