'use strict';

Object.defineProperty(exports, "__esModule", {
	value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _pxSpinner = require('./px-spinner.scss');

var _pxSpinner2 = _interopRequireDefault(_pxSpinner);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (_ref) {
	var _ref$size = _ref.size,
	    size = _ref$size === undefined ? 100 : _ref$size,
	    _ref$finished = _ref.finished,
	    finished = _ref$finished === undefined ? false : _ref$finished;
	return _react2.default.createElement(
		'div',
		null,
		!finished && _react2.default.createElement(
			'svg',
			{ viewBox: '0 0 100 100', className: 'px-spinner', height: size, width: size },
			_react2.default.createElement('circle', { className: 'circle1', cx: '50', cy: '50', r: '45' }),
			_react2.default.createElement('circle', { className: 'circle2', cx: '50', cy: '50', r: '45', transform: 'rotate(-45,50,50)' })
		)
	);
};