import React from 'react' ; interface IConvertSVGParameters { children : React . ReactNode ; height : string ; width : string ; } param { string } width param { string } height const ConvertSVG = ( { children , height , width , } ) => ( < svg height = { height } width = { width } viewBox = { `0 0 ${ width } ${ height }` } fill = "none" xmlns = "http://www.w3.org/2000/svg" > < foreignObject width = { width } height = { height } > < div { ... { xmlns : "http://www.w3.org/1999/xhtml" } } > < style > { `
            * {
              margin: 0;
              box-sizing: border-box;
            }
          ` } < /style> { children } < /div> < /foreignObject> < /svg>); export default ConvertSVG ;