import React from 'react';
import PropTypes from 'prop-types';
import * as style from './style';
const padding = 10;
const namespaceProps = {
'xmlns': 'http://www.w3.org/2000/svg',
'xmlns:cc': 'http://creativecommons.org/ns#',
'xmlns:rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
};
/* eslint-disable max-len */
const metadata = `
`;
/* eslint-enable max-len */
const SVG = ({ innerWidth, innerHeight, children }) => {
const width = Math.round(innerWidth + 2 * padding);
const height = Math.round(innerHeight + 2 * padding);
const svgProps = {
width,
height,
viewBox: [0, 0, width, height].join(' '),
style: style.image,
...namespaceProps
};
return ;
};
SVG.propTypes = {
children: PropTypes.node,
innerWidth: PropTypes.number,
innerHeight: PropTypes.number
};
export default SVG;