(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7211],{68986:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/ad-script-generator",function(){return a(87175)}])},87175:function(e,t,a){"use strict";a.r(t);var n=a(85893),r=a(78859),i=a(67611),o=a(18340),l=a(53002),d=a(75268),s=a(67294);let AdScriptGenerator=()=>{let[e,t]=(0,s.useState)(!1),[a,u]=(0,s.useState)("");return(0,s.useEffect)(()=>{if(e){t(!0);let a=setTimeout(()=>{let n=0,r=setInterval(()=>{n<c.length&&e?(u(c.substring(0,n+1)),n+=1):(t(!1),clearInterval(r),clearTimeout(a))},10)},1e3)}},[e]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z,{}),(0,n.jsx)(r.Z,{children:(0,n.jsx)("div",{className:"p-6 mb-4",children:(0,n.jsxs)("div",{className:"max-w-4xl mx-auto text-neutral-700 dark:text-neutral-300",children:[(0,n.jsx)(i.Z,{channelData:o.H,channelSummarySnapshots:o.e.data}),(0,n.jsxs)("div",{className:"border border-neutral-300 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-950 rounded-lg p-4",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"text-lg font-semibold",children:"Ad Script"})}),(0,n.jsx)("div",{className:"my-4",children:(0,n.jsx)("button",{type:"button",onClick:()=>{e||t(!0)},className:"flex items-center justify-center h-14 w-52 py-4 px-6 border border-indigo-300 rounded text-lg text-neutral-700 dark:text-indigo-300 bg-indigo-800 bg-opacity-50 hover:brightness-125",children:e?(0,n.jsx)(d.Z,{width:"20",fill:"white",className:"animate-spin"}):"Generate with AI"})}),(0,n.jsx)("textarea",{placeholder:"The ad script to be used in the brand deal. This will be sent to the influencers that accept the campaign.",className:"w-full text-xl px-4 py-2 text-neutral-700 dark:text-neutral-300 rounded bg-neutral-50 dark:bg-neutral-950 border border-neutral-300 dark:border-neutral-700",style:{height:"50vh"},value:a,onChange:e=>u(e.target.value)})]})]})})})]})};AdScriptGenerator.authed=!1,t.default=AdScriptGenerator;let c=`Hey everyone, welcome back to my channel. Today, I want to talk to you about a new product that I’ve been using and loving lately. It’s called [Product Name], and it’s honestly a game-changer.

[Product Name] is a [brief description of the product]. What I love about it is that it’s [unique feature or benefit], which is something that I haven’t seen in other products on the market.

I’ve been using [Product Name] for a few weeks now, and I’ve already noticed a difference in [specific benefit that you’ve experienced]. It’s [additional benefit or feature], which makes it really easy to use and incorporate into my daily routine.

If you’re someone who is [relevant target audience], I highly recommend giving [Product Name] a try. It’s affordable, effective, and it’s made a noticeable difference in my life.

So, if you’re interested in checking out [Product Name], I’ve included a link in the description box below. And be sure to let me know in the comments if you’ve tried it before or if you’re planning to give it a go.`},9008:function(e,t,a){e.exports=a(79201)}},function(e){e.O(0,[4838,6758,9774,2888,179],function(){return e(e.s=68986)}),_N_E=e.O()}]);