import React from 'react'

const ZendeskWidget = () => (
  <script dangerouslySetInnerHTML={{__html: `
window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");
window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,
r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style
.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode
.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(e){n=document.domain,r
.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){
var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,
this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write(
'<body onload="document._l();">'),o.close()}(
"https://assets.zendesk.com/embeddable_framework/main.js","nossas.zendesk.com")
  `}} />
)

export default ZendeskWidget

@@ -9,96 +9,268 @@
 eact
- from 'react'%0A%0Aconst ZendeskWidget = () =%3E (%0A  %3Cscript dangerouslySetInnerHTML=%7B%7B__html:
+, %7B Component %7D from 'react'%0Aimport exenv from 'exenv'%0A%0Aclass ZendeskWidget extends Component %7B%0A  componentWillMount () %7B%0A    if (exenv.canUseDOM) %7B%0A      const script = document.createElement('script')%0A      script.type = 'text/javascript'%0A      script.text =
  %60%0Aw
@@ -1094,19 +1094,100 @@
 om%22)
+%60
 %0A  
-%60%7D%7D /%3E%0A)
+    document.body.appendChild(script)%0A    %7D%0A  %7D%0A%0A  render () %7B%0A    return %3Cspan /%3E%0A  %7D%0A%7D
 %0A%0Aex

Fix ZendeskWidget component to add script dangerously; Close #468