(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[22,665],{4824:function(e,t,r){Promise.resolve().then(r.bind(r,7215))},7215:function(e,t,r){"use strict";r.r(t);var n=r(7437),o=r(4033),l=r(2265);t.default=()=>{let e=(0,o.useRouter)(),[t,r]=(0,l.useState)(!1),[a,s]=(0,l.useState)("");return(0,n.jsxs)("div",{children:[t?null:(0,n.jsx)("button",{type:"button",onClick:()=>r(!t),className:"border w-full p-2 border-primary rounded text-primary font-semibold",children:"Lihat Riwayat Pecakapan"}),t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{value:a,onChange:e=>s(e.target.value),placeholder:"Masukkan Email",className:"w-full p-2 border rounded mt-4 mb-2"}),(0,n.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>r(!t),className:"border w-full border-primary rounded text-primary font-semibold",children:"Tutup"}),(0,n.jsx)("button",{type:"button",onClick:()=>e.push("/content/faq/".concat(a)),className:"bg-primary text-white rounded font-semibold py-1 w-full",children:"Lihat"})]})]}):null]})}},622:function(e,t,r){"use strict";var n=r(2265),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,r){var n,l={},i=null,c=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!u.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:i,ref:c,props:l,_owner:s.current}}t.Fragment=l,t.jsx=i,t.jsxs=i},7437:function(e,t,r){"use strict";e.exports=r(622)},4033:function(e,t,r){e.exports=r(5313)}},function(e){e.O(0,[971,938,744],function(){return e(e.s=4824)}),_N_E=e.O()}]);